tenseleyflow/loader / 3731911

Browse files

Point runtime-context tests at shared bootstrap

Authored by espadonne
SHA
3731911346590bab154e26687dc486391df38617
Parents
5a3f6fa
Tree
57b9a60

1 changed file

StatusFile+-
M tests/test_runtime_context.py 3 2
tests/test_runtime_context.pymodified
@@ -5,6 +5,7 @@ from __future__ import annotations
55
 from pathlib import Path
66
 
77
 from loader.agent.loop import Agent, AgentConfig
8
+from loader.runtime.bootstrap import build_runtime_context
89
 from loader.runtime.context import RuntimeContext
910
 from loader.runtime.recovery import RecoveryContext
1011
 from tests.helpers.runtime_harness import ScriptedBackend
@@ -18,7 +19,7 @@ def test_agent_builds_typed_runtime_context(temp_dir: Path) -> None:
1819
         project_root=temp_dir,
1920
     )
2021
 
21
-    context = agent._build_runtime_context()
22
+    context = build_runtime_context(agent)
2223
 
2324
     assert isinstance(context, RuntimeContext)
2425
     assert context.project_root == temp_dir.resolve()
@@ -47,7 +48,7 @@ def test_runtime_context_control_callbacks_stay_in_sync(temp_dir: Path) -> None:
4748
         project_root=temp_dir,
4849
     )
4950
 
50
-    context = agent._build_runtime_context()
51
+    context = build_runtime_context(agent)
5152
     context.queue_steering_message("Re-check the current task.")
5253
 
5354
     assert context.drain_steering_messages() == ["Re-check the current task."]