fix(orchestrator): pyright — pass explicit LaunchRequest in the docker integration test (#352)
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:
@@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user