test: satisfy pyright strict annotations on the new supervise RPC tests
tracker-policy-pr / check-pr (pull_request) Successful in 13s
test / integration-docker (pull_request) Successful in 18s
lint / lint (push) Successful in 1m0s
test / unit (pull_request) Successful in 1m48s
test / integration-firecracker (pull_request) Successful in 3m23s
test / coverage (pull_request) Successful in 17s
test / publish-infra (pull_request) Has been skipped

Add parameter/return annotations to the fake resolver's propose_supervise /
poll_supervise, annotate the test helpers and the shared _ARGS payload, and
narrow the None-able poll result — no behavior change. pylint 9.83, pyright
clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-24 03:24:15 +00:00
parent 2c496dc3d0
commit 30d74cbf2b
4 changed files with 120 additions and 22 deletions
+1
View File
@@ -144,6 +144,7 @@ class TestPolicyResolver(unittest.TestCase):
{"status": "approved", "notes": "ok", "final_file": None})
) as m:
result = self.r.poll_supervise("10.243.0.7", "tok", "p-7")
assert result is not None
self.assertEqual("approved", result["status"])
req = m.call_args.args[0]
self.assertTrue(req.full_url.endswith("/supervise/poll"))