← Về thư mục
tests/test_gateway_lazy_runtime.py
- _Hub · class · L14-L30 — class _Hub
- init · method · L15-L16 — def init(self) -> None
- emitter · method · L18-L23 — def emitter(self, root_frame_id: str)
- emit · function · L19-L21 — def emit(event: dict) -> None
- broadcast · method · L25-L27 — def broadcast(self, root_frame_id: str, event: dict) -> None
- has_subscriber · method · L29-L30 — def has_subscriber(self, root_frame_id: str) -> bool
- _Dispatcher · class · L33-L45 — class _Dispatcher
- init · method · L34-L39 — def init(self, frame_id: str) -> None
- call · method · L41-L45 — def call(self, method: str, args: list)
- _cfg · function · L48-L53 — def _cfg(tmp_path, *, max_turns: int = 1) -> Config
- _frame · function · L56-L59 — def _frame(runner) -> str
- _native_call · function · L62-L73 — def _native_call() -> dict
- _install_fake_runtime · function · L76-L161 — def _install_fake_runtime(monkeypatch, runner, *, expect_attempt_for=None)
- build_dispatcher · function · L81-L85 — def build_dispatcher(_cfg, *, frame_id, workspace)
- FakeKernel · class · L87-L154 — class FakeKernel
- init · method · L88-L96 — def init(self, dispatcher, **options) -> None
- is_alive · method · L98-L99 — def is_alive(self) -> bool
- execute · method · L101-L142 — def execute(self, code, origin="agent", on_chunk=None, *, cell_id=None)
- interrupt · method · L144-L145 — def interrupt(self) -> None
- shutdown · method · L147-L148 — def shutdown(self) -> None
- restart · method · L150-L151 — def restart(self) -> None
- kill_worker · method · L153-L154 — def kill_worker(self) -> None
- test_session_creation_plan_and_native_tool_turn_do_not_spawn · function · L164-L206 — def test_session_creation_plan_and_native_tool_turn_do_not_spawn(monkeypatch, tmp_path)
- test_session_runtime_reuses_delegation_tree_and_scoped_capabilities · function · L209-L230 — def test_session_runtime_reuses_delegation_tree_and_scoped_capabilities(tmp_path)
- test_tool_only_structured_finalize_completes_without_kernel · function · L233-L284 — def test_tool_only_structured_finalize_completes_without_kernel(monkeypatch, tmp_path)
- fake_chat · function · L245-L267 — def fake_chat(messages, cfg, **kwargs)
- test_first_code_spawns_once_and_stop_does_not_break_tool_only_runtime · function · L287-L331 — def test_first_code_spawns_once_and_stop_does_not_break_tool_only_runtime( monkeypatch, tmp_path )
- test_explicit_start_and_repl_spawn_but_repl_attempt_precedes_spawn · function · L334-L390 — def test_explicit_start_and_repl_spawn_but_repl_attempt_precedes_spawn( monkeypatch, tmp_path )
- test_reopened_repl_allocates_after_durable_attempt_revision · function · L393-L445 — def test_reopened_repl_allocates_after_durable_attempt_revision(monkeypatch, tmp_path)
- test_repl_response_and_persisted_cell_keep_interrupted_terminal_state · function · L448-L459 — def test_repl_response_and_persisted_cell_keep_interrupted_terminal_state( monkeypatch, tmp_path )
- test_environment_selection_without_kernel_only_persists · function · L462-L488 — def test_environment_selection_without_kernel_only_persists(monkeypatch, tmp_path)
- test_session_runtime_factory_is_lazy_and_singleton · function · L491-L497 — def test_session_runtime_factory_is_lazy_and_singleton()