test(python-backend): restore test typing fixes and formatting
A later vendored sync reverted the test typing fixes from 23bd5b2 and the line-length formatting from 50461c0, which fails the ty check in consumers that run `ty check --error-on-warning`. Restore them: - assert the narrowed upgraded/found values before use - suppress the intentional _FakeDatabase argument mismatches with `# ty: ignore[invalid-argument-type]` - reformat the long lines to the package's line-length of 100 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
75c08beec6
commit
74942e55f9
4 files changed
+25
-14
No files matched your search
@@ -42,9 +42,7 @@ class AuthContractTests(unittest.TestCase):
|
||||
if "python" in entry.get("needsUpgrade", {}):
|
||||
want = entry["needsUpgrade"]["python"]
|
||||
self.assertEqual(password_hash_needs_upgrade(entry["hash"]), want)
|
||||
valid, upgraded = verify_and_upgrade_password(
|
||||
plaintext, entry["hash"]
|
||||
)
|
||||
valid, upgraded = verify_and_upgrade_password(plaintext, entry["hash"])
|
||||
self.assertTrue(valid)
|
||||
self.assertEqual(upgraded is not None, want)
|
||||
if upgraded is not None:
|
||||
|
||||
Reference in new issue
Block a user