developer(ET): auto-commit from developer run_id=363
All checks were successful
CI / test (push) Successful in 23s
CI / test (pull_request) Successful in 23s

This commit is contained in:
2026-06-08 10:19:42 +00:00
parent 2087475d0d
commit 9e1fe82ef0
16 changed files with 1207 additions and 65 deletions

View File

@@ -8,9 +8,17 @@ builds a FRESH Settings() (the process-wide singleton is not mutated).
from src.config import Settings
def test_tracker_mode_defaults_to_edit(monkeypatch):
# No env var -> default "edit" (TC-01 / AC-1).
def test_tracker_mode_defaults_to_bump(monkeypatch):
# ORCH-067 (TC-01 / AC-1): the default flipped edit -> bump. With no env var
# the card now re-creates at the bottom of the chat out of the box; edit
# stays available via ORCH_TRACKER_MODE=edit (see test below).
monkeypatch.delenv("ORCH_TRACKER_MODE", raising=False)
assert Settings().tracker_mode == "bump"
def test_tracker_mode_reads_env_edit(monkeypatch):
# ORCH-067 (AC-4): edit mode is still available through the env var.
monkeypatch.setenv("ORCH_TRACKER_MODE", "edit")
assert Settings().tracker_mode == "edit"