← Về thư mục
tests/test_server_agent_run.py
- _native_call · function · L33-L48 — def _native_call( index: int, *, name: str = "list_dir", wire_id: str | None = None, arguments: dict | None = None, ) -> NativeToolCall
- _event_sink · function · L51-L60 — def _event_sink(*, send=None, visible=None, usage=None) -> WebEventSink
- _executor · function · L63-L80 — def _executor( dispatcher, , events=None, apply_pending=None, execute_cell=None, *overrides, ) -> WebActionExecutor
- test_prose_streamer_hides_nested_fences_across_delta_boundaries · function · L83-L114 — def test_prose_streamer_hides_nested_fences_across_delta_boundaries()
- test_web_event_sink_streams_visible_prose_records_usage_and_visible_block · function · L117-L144 — def test_web_event_sink_streams_visible_prose_records_usage_and_visible_block()
- test_web_event_sink_falls_back_when_provider_emits_no_deltas · function · L147-L169 — def test_web_event_sink_falls_back_when_provider_emits_no_deltas()
- test_code_draft_streamer_replaces_one_transient_block_and_can_clear_it · function · L172-L189 — def test_code_draft_streamer_replaces_one_transient_block_and_can_clear_it()
- test_code_draft_streamer_throttles_long_multiline_cells · function · L192-L206 — def test_code_draft_streamer_throttles_long_multiline_cells()
- test_code_draft_skips_legacy_tool_fence_and_tracks_later_python_cell · function · L209-L225 — def test_code_draft_skips_legacy_tool_fence_and_tracks_later_python_cell()
- test_unclosed_model_code_is_visible_only_as_a_discardable_draft · function · L228-L240 — def test_unclosed_model_code_is_visible_only_as_a_discardable_draft()
- test_completion_only_cell_draft_is_cleared_before_hidden_execution · function · L243-L263 — def test_completion_only_cell_draft_is_cleared_before_hidden_execution()
- test_web_event_sink_narrates_tool_only_action_without_leaking_arguments · function · L266-L289 — def test_web_event_sink_narrates_tool_only_action_without_leaking_arguments()
- test_web_event_sink_does_not_duplicate_real_prose_at_action_boundary · function · L292-L303 — def test_web_event_sink_does_not_duplicate_real_prose_at_action_boundary()
- test_web_event_sink_adds_real_post_cell_status_after_intent_prose · function · L306-L327 — def test_web_event_sink_adds_real_post_cell_status_after_intent_prose()
- test_native_batch_returns_canonical_tool_history_and_never_completes · function · L330-L389 — def test_native_batch_returns_canonical_tool_history_and_never_completes( monkeypatch, )
- fake_execute · function · L337-L339 — def fake_execute(current_dispatcher, call)
- test_code_action_is_the_only_path_that_reads_submit_completion · function · L392-L421 — def test_code_action_is_the_only_path_that_reads_submit_completion()
- execute_cell · function · L400-L404 — def execute_cell(action)
- test_web_revalidates_mid_cell_completion_after_gateway_capture · function · L424-L449 — def test_web_revalidates_mid_cell_completion_after_gateway_capture()
- execute_cell · function · L429-L432 — def execute_cell(_action)
- revalidate · function · L434-L437 — def revalidate()
- test_code_action_executes_one_cell_and_warns_about_later_cells · function · L452-L475 — def test_code_action_executes_one_cell_and_warns_about_later_cells()
- test_cell_admission_precedes_pending_environment_and_execution · function · L478-L499 — def test_cell_admission_precedes_pending_environment_and_execution()
- refuse · function · L481-L483 — def refuse(action)
- test_code_action_warns_when_a_complete_cell_has_an_incomplete_tail · function · L502-L520 — def test_code_action_warns_when_a_complete_cell_has_an_incomplete_tail()
- test_legacy_fenced_tool_still_executes_and_returns_user_observation · function · L523-L548 — def test_legacy_fenced_tool_still_executes_and_returns_user_observation(monkeypatch)
- fake_execute · function · L528-L530 — def fake_execute(current_dispatcher, call)
- test_prose_only_reply_uses_normal_or_explore_nudge · function · L555-L569 — def test_prose_only_reply_uses_normal_or_explore_nudge(explore_mode, expected)
- test_empty_reply_uses_no_code_nudge · function · L572-L577 — def test_empty_reply_uses_no_code_nudge()
- test_web_incomplete_cell_requests_full_replacement_without_execution · function · L580-L592 — def test_web_incomplete_cell_requests_full_replacement_without_execution()
- test_plan_mode_refuses_native_calls_without_executing_and_closes_history · function · L595-L640 — def test_plan_mode_refuses_native_calls_without_executing_and_closes_history( monkeypatch, )
- unexpected · function · L607-L608 — def unexpected(args, *kwargs)
- test_trailing_environment_failure_is_returned_without_dangling_history · function · L643-L675 — def test_trailing_environment_failure_is_returned_without_dangling_history( monkeypatch, )
- apply_pending · function · L652-L656 — def apply_pending()
- test_cancelled_run_stops_before_plan_or_action · function · L678-L705 — def test_cancelled_run_stops_before_plan_or_action(monkeypatch)
- unexpected · function · L681-L682 — def unexpected(args, *kwargs)
- _EnvSwitchExploded · class · L718-L730 — class _EnvSwitchExploded(FileNotFoundError)
- init · method · L727-L730 — def init(self) -> None
- _assert_env_failure_is_reported_but_not_quoted · function · L733-L739 — def _assert_env_failure_is_reported_but_not_quoted(text: str) -> None
- test_a_trailing_env_switch_failure_does_not_quote_the_exception · function · L742-L772 — def test_a_trailing_env_switch_failure_does_not_quote_the_exception(monkeypatch)
- apply_pending · function · L757-L762 — def apply_pending() -> None: #
prepare_group calls this before the batch; the trailing call is the # one under test, so only the second raises.
- test_a_legacy_env_switch_failure_does_not_quote_the_exception · function · L775-L791 — def test_a_legacy_env_switch_failure_does_not_quote_the_exception(monkeypatch)
- apply_pending · function · L782-L783 — def apply_pending() -> None
- test_run_finished_discards_a_draft_the_cancelled_turn_never_routed · function · L794-L824 — def test_run_finished_discards_a_draft_the_cancelled_turn_never_routed()