← Về thư mục
tests/test_plan.py
- _Hub · class · L15-L28 — class _Hub
- init · method · L16-L17 — def init(self)
- emitter · method · L19-L24 — def emitter(self, root_frame_id)
- emit · function · L20-L22 — def emit(event)
- broadcast · method · L26-L28 — def broadcast(self, root_frame_id, event)
- _cfg · function · L31-L36 — def _cfg(tmp_path)
- _fake_ensure · function · L39-L42 — def _fake_ensure(st)
- test_extract_plan_json_from_fence · function · L46-L57 — def test_extract_plan_json_from_fence()
- test_extract_plan_bare_object_and_numeric_confidence · function · L60-L70 — def test_extract_plan_bare_object_and_numeric_confidence(): # no fence, numeric confidence, string deliverable, missing ids
- test_normalize_plan_prose_fallback · function · L73-L79 — def test_normalize_plan_prose_fallback()
- test_plan_public_merges_step_status · function · L82-L92 — def test_plan_public_merges_step_status()
- test_store_plan_crud_and_cascade · function · L96-L113 — def test_store_plan_crud_and_cascade(tmp_path)
- test_get_plan_by_frame_prefers_non_discarded · function · L116-L134 — def test_get_plan_by_frame_prefers_non_discarded(tmp_path)
- test_plan_mode_turn_emits_plan_ready · function · L138-L178 — def test_plan_mode_turn_emits_plan_ready(monkeypatch, tmp_path)
- fake_chat · function · L154-L157 — def fake_chat(messages, cfg, on_delta=None, **kw)
- _agent_calls · function · L182-L188 — def _agent_calls(calls)
- _last_user_content · function · L191-L194 — def _last_user_content(messages) -> str
- _plan_turn · function · L197-L214 — def _plan_turn(monkeypatch, tmp_path, request, reply)
- fake_chat · function · L205-L209 — def fake_chat(messages, cfg, on_delta=None, **kw)
- test_plan_mode_instructs_model_server_side · function · L225-L243 — def test_plan_mode_instructs_model_server_side(monkeypatch, tmp_path)
- test_plan_mode_instruction_follows_request_language · function · L246-L253 — def test_plan_mode_instruction_follows_request_language(monkeypatch, tmp_path)
- test_plan_mode_does_not_double_the_workbench_prompt · function · L256-L268 — def test_plan_mode_does_not_double_the_workbench_prompt(monkeypatch, tmp_path)
- test_a_workbench_plan_prompt_does_not_title_the_session · function · L297-L338 — def test_a_workbench_plan_prompt_does_not_title_the_session(monkeypatch, tmp_path)
- fake_chat · function · L318-L320 — def fake_chat(messages, cfg, on_delta=None, **kw)
- test_plan_mode_request_text_leaves_other_text_alone · function · L341-L356 — def test_plan_mode_request_text_leaves_other_text_alone()
- test_plan_mode_uncaptured_plan_is_not_silent · function · L359-L382 — def test_plan_mode_uncaptured_plan_is_not_silent(monkeypatch, tmp_path)
- test_a_normal_turn_result_carries_no_plan_field · function · L385-L399 — def test_a_normal_turn_result_carries_no_plan_field(monkeypatch, tmp_path)
- fake_chat · function · L392-L393 — def fake_chat(messages, cfg, on_delta=None, **kw)
- test_approve_runs_execution_and_marks_completed · function · L403-L435 — def test_approve_runs_execution_and_marks_completed(monkeypatch, tmp_path)
- fake_chat · function · L417-L421 — def fake_chat(messages, cfg, on_delta=None, **kw)
- fake_exec · function · L423-L425 — def fake_exec(st, code, origin, emit, stream=True, language="python")
- test_an_english_plan_is_drafted_and_executed_in_english · function · L438-L489 — def test_an_english_plan_is_drafted_and_executed_in_english(monkeypatch, tmp_path)
- fake_chat · function · L456-L459 — def fake_chat(messages, cfg, on_delta=None, **kw)
- fake_exec · function · L461-L466 — def fake_exec(st, code, origin, emit, stream=True, language="python")
- test_host_plan_update_ticks_step · function · L493-L512 — def test_host_plan_update_ticks_step(tmp_path)
- test_host_plan_update_without_plan_soft_fails · function · L515-L523 — def test_host_plan_update_without_plan_soft_fails(tmp_path)
- test_discard_plan · function · L527-L542 — def test_discard_plan(tmp_path)