Answer architecture round 3: 0 🔴, 1 🟡 (0 misread); every suite sits beside the module it tests, and test_loop_claude.py holds only loop-claude's own
CI / tests (pull_request) Successful in 5m17s
CI / tests (pull_request) Successful in 5m17s
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Test doubles for the suites that drive a chunk: the loop of an entry point that exists only in tests."""
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
from loop_effects.effects import Effects
|
||||
from chunk_driver.this_loop import Loop
|
||||
from loop_state import paths
|
||||
from claude_code import session
|
||||
from agent_cycle.doubles import WINDOW
|
||||
|
||||
|
||||
def a_loop(effects: Effects, **fields: typing.Any) -> Loop:
|
||||
"""A loop in /r on effects, with fields in place of its defaults."""
|
||||
home = pathlib.Path("/h")
|
||||
defaults = {"root": "/r", "session": session.session_named("A proj a-driver", home / ".claude" / "projects"), "paths": paths.paths_from(home), "env": {}, "launcher": pathlib.Path("/b/a-driver"), "window": WINDOW}
|
||||
return Loop(**{**defaults, **fields}, effects=effects)
|
||||
Reference in New Issue
Block a user