fix(pyright): assert not None before accessing datetime attributes in tests
test / integration (pull_request) Successful in 10s
lint / lint (push) Successful in 42s
test / coverage (pull_request) Successful in 40s
test / unit (pull_request) Successful in 1m32s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 01:10:18 +00:00
parent 6082e92b46
commit 8458b221d9
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -35,6 +35,8 @@ class TestImageCreatedAt(unittest.TestCase):
return_value=_ok(stdout="2026-07-06T15:33:47.123456789Z\n"),
) as run:
created = docker_mod.image_created_at("bot-bottle-claude:latest")
self.assertIsNotNone(created)
assert created is not None
self.assertEqual(2026, created.year)
self.assertEqual(123456, created.microsecond)
self.assertEqual(timezone.utc, created.tzinfo)