chore(release): 0.15.0 — operator authentication (version, CHANGELOG split, SW cache, test isolation)

This commit is contained in:
2026-06-18 20:43:29 +00:00
parent fdcb1ca532
commit c9bb25e7e1
5 changed files with 37 additions and 4 deletions
+14
View File
@@ -50,6 +50,20 @@ def _reset_portal_lockout():
yield
@pytest.fixture(autouse=True)
def _operator_auth_off_by_default(monkeypatch):
"""Pin the operator-auth gate OFF for every test, so the suite is deterministic
regardless of the container's OPERATOR_AUTH_ENABLED env (the dev container may
have it ON for manual testing). Tests that exercise the gate opt in via
wire_operator_auth(enabled=True), which overrides this within the test body."""
try:
import backend.operator_auth as _oa
monkeypatch.setattr(_oa, "OPERATOR_AUTH_ENABLED", False, raising=False)
except Exception:
pass
yield
def make_project(db_session, name=None, **kwargs):
"""Insert and return a Project with a unique name."""
p = models.Project(