| [gw3] darwin -- Python 3.12.12 /Users/cao/.pyenv/versions/3.12.12/bin/python
|
|
|
| def test_pm_tick_spawn_fresh_no_handoff_keeps_plain_assign_line():
|
| """A fresh bug (no handoff) MUST still use the plain `PM ASSIGNED agent` line — the follow-up
|
| variant is for REJECTED bugs ONLY (counter-case in the bug)."""
|
| bug = _bug("fpFresh")
|
| deps = _tick_deps(bug, action=PM.ACTION_SPAWN_FOLLOWUP)
|
| db, poster = FakeDB(), PosterRecorder()
|
|
|
| PM.pm_tick(execute=True, spawner=FakeSpawner(spawned=True), marker=lambda *a, **k: True,
|
| now=NOW, narrate_status=True, status_poster=poster, status_db_factory=_dbf(db), **deps)
|
|
|
| assign_lines = [m for m in poster.messages if "PM ASSIGNED" in m or "PM FOLLOW-UP" in m]
|
| > assert len(assign_lines) == 1
|
| E assert 0 == 1
|
| E + where 0 = len([])
|
|
|
| tests/services/test_pm_status_narration.py:699: AssertionError
|