Skip to content

Commit

Permalink
docs(test): comment why mypy needs a mock table [#411]
Browse files Browse the repository at this point in the history
  • Loading branch information
rmlibre committed Jul 27, 2024
1 parent c51e6e8 commit 080ae11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_secrets_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_admin_db_secrets_are_static_once_created(static_app: Flask, name: str)
assert secret == _summon_db_secret(name=name)

if (entry := InfrastructureAdmin.query.get(name)) is None:
# hack: mypy gets upset because the query could return `None`
db_value = MockInfrastructureAdminEntry()._value
else:
db_value = entry._value
Expand Down

0 comments on commit 080ae11

Please sign in to comment.