тест 9

This commit is contained in:
2026-08-24 18:38:12 +03:00
parent aac9e5b8bc
commit 10a65e4d47
6 changed files with 233 additions and 22 deletions

View File

@@ -39,10 +39,12 @@ def test_browser_timeout_no_longer_blames_stat2tv_for_every_endpoint() -> None:
def test_session_assignment_defers_full_mapping() -> None:
assert "background_tasks: BackgroundTasks" in ROUTER
assert "wait_for_mapping=False" in ROUTER
assert "background_tasks.add_task(" in ROUTER
assert "agent_hub.apply_mapping_to_device" in ROUTER
# BUILD111 keeps BUILD109's non-blocking match open, but Mapping is no
# longer queued here because it must wait for the new roster/details.
open_session = ROUTER[ROUTER.index('@router.post("/sessions")'):ROUTER.index('@router.get("/sessions/{token}")')]
assert "background_tasks.add_task(" not in open_session
assert 'result["agent_status"]' in open_session
def test_assign_match_can_return_without_running_mapping(tmp_path: Path) -> None: