fix(orchestrator): pyright — pass explicit LaunchRequest in the docker integration test (#352)
lint / lint (push) Successful in 1m58s
test / unit (pull_request) Successful in 59s
test / integration (pull_request) Successful in 20s
test / coverage (pull_request) Successful in 1m6s

The **kw unpacking put str into slot: int|None. Pass explicit
LaunchRequests instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBMWTEtQdJ4W5UrWuLHCck
This commit is contained in:
2026-07-13 15:05:55 -04:00
parent 4fb0f64249
commit 44e611d14e
@@ -40,14 +40,15 @@ class TestDockerBrokerIntegration(unittest.TestCase):
) )
return self.name in proc.stdout.split() return self.name in proc.stdout.split()
def _submit(self, op: str, **kw: str) -> None: def _submit(self, req: LaunchRequest) -> None:
req = LaunchRequest(op=op, bottle_id=self.bottle_id, **kw)
self.broker.submit(sign_request(req, self.secret)) self.broker.submit(sign_request(req, self.secret))
def test_launch_creates_then_teardown_removes(self) -> None: def test_launch_creates_then_teardown_removes(self) -> None:
self._submit("launch", image_ref=IMAGE) self._submit(
LaunchRequest(op="launch", bottle_id=self.bottle_id, image_ref=IMAGE)
)
self.assertTrue(self._exists(), "container should exist after launch") self.assertTrue(self._exists(), "container should exist after launch")
self._submit("teardown") self._submit(LaunchRequest(op="teardown", bottle_id=self.bottle_id))
self.assertFalse(self._exists(), "container should be gone after teardown") self.assertFalse(self._exists(), "container should be gone after teardown")