MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_phase_done_count

Function test_phase_done_count

tests/workflow/test_progress_render.py:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_phase_done_count():
43 prog = WorkflowProgress([{"title": "S"}])
44 prog.start_phase("S")
45 r1 = prog.agent_started(0, "a", "S", "0")
46 prog.agent_finished(r1, status="completed", tokens=1)
47 prog.agent_started(1, "b", "S", "1") # still running
48 assert prog.phases[0].done_count == 1
49 assert len(prog.phases[0].agents) == 2
50
51
52def test_render_run_lines_rich():

Callers

nothing calls this directly

Calls 4

start_phaseMethod · 0.95
agent_startedMethod · 0.95
agent_finishedMethod · 0.95
WorkflowProgressClass · 0.90

Tested by

no test coverage detected