Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions tests/unit/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ def _reset_app_config_between_tests() -> Generator:
AppConfig()._quota_limiters to an empty list, ignoring any exceptions, then
yields control to the test and repeats the cleanup after the test.
"""
try:
AppConfig()._configuration = None # type: ignore[attr-defined]
AppConfig()._quota_limiters = [] # type: ignore[attr-defined]
except Exception:
pass
AppConfig()._configuration = None # type: ignore[attr-defined]
AppConfig()._quota_limiters = [] # type: ignore[attr-defined]
yield
# ensure clean state after each test
try:
Expand Down
Loading