refactor: rename prepare.py → resolve_plan.py in both backends
lint / lint (push) Failing after 1m45s
test / unit (pull_request) Successful in 35s
test / integration (pull_request) Successful in 47s

This commit is contained in:
2026-06-08 14:12:48 +00:00
parent b872985a65
commit f95eabeb86
5 changed files with 12 additions and 12 deletions
+8 -8
View File
@@ -50,16 +50,16 @@ class TestSmolmachinesResolveEnv(unittest.TestCase):
try:
with (
patch("bot_bottle.backend.smolmachines.prepare.resolve_env",
patch("bot_bottle.backend.smolmachines.resolve_plan.resolve_env",
return_value=resolved) as mock_resolve,
patch("bot_bottle.backend.smolmachines.prepare.smolmachines_preflight"),
patch("bot_bottle.backend.smolmachines.prepare.smolmachines_bundle_subnet",
patch("bot_bottle.backend.smolmachines.resolve_plan.smolmachines_preflight"),
patch("bot_bottle.backend.smolmachines.resolve_plan.smolmachines_bundle_subnet",
return_value=("10.99.0.0/24", "10.99.0.1", "10.99.0.2")),
patch("bot_bottle.backend.smolmachines.prepare.GitGate") as mock_gg,
patch("bot_bottle.backend.smolmachines.prepare.Egress") as mock_eg,
patch("bot_bottle.backend.smolmachines.prepare.Supervise"),
patch("bot_bottle.backend.smolmachines.resolve_plan.GitGate") as mock_gg,
patch("bot_bottle.backend.smolmachines.resolve_plan.Egress") as mock_eg,
patch("bot_bottle.backend.smolmachines.resolve_plan.Supervise"),
patch(
"bot_bottle.backend.smolmachines.prepare.agent_provision_plan"
"bot_bottle.backend.smolmachines.resolve_plan.agent_provision_plan"
) as mock_app,
):
mock_gg.return_value.prepare.return_value = MagicMock()
@@ -75,7 +75,7 @@ class TestSmolmachinesResolveEnv(unittest.TestCase):
)
mock_app.side_effect = lambda **kw: _make_provision(**kw) # type: ignore
from bot_bottle.backend.smolmachines.prepare import resolve_plan
from bot_bottle.backend.smolmachines.resolve_plan import resolve_plan
plan = resolve_plan(spec, stage_dir=stage)
mock_resolve.assert_called_once_with(manifest, "myagent")