mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
fix(lint): improved type checking and code maintainability
This commit is contained in:
parent
83fe527979
commit
40023e93b8
62 changed files with 187 additions and 197 deletions
|
|
@ -8,7 +8,7 @@ pytestmark = pytest.mark.skip(reason="M4: preview_perf_benchmark module removed
|
|||
def test_fetch_all_theme_slugs_retries(monkeypatch):
|
||||
calls = {"count": 0}
|
||||
|
||||
def fake_fetch(url): # type: ignore[override]
|
||||
def fake_fetch(url):
|
||||
calls["count"] += 1
|
||||
if calls["count"] == 1:
|
||||
raise RuntimeError("transient 500")
|
||||
|
|
@ -27,7 +27,7 @@ def test_fetch_all_theme_slugs_retries(monkeypatch):
|
|||
def test_fetch_all_theme_slugs_page_level_retry(monkeypatch):
|
||||
calls = {"count": 0}
|
||||
|
||||
def fake_fetch_with_retry(url, attempts=3, delay=0.6): # type: ignore[override]
|
||||
def fake_fetch_with_retry(url, attempts=3, delay=0.6):
|
||||
calls["count"] += 1
|
||||
if calls["count"] < 3:
|
||||
raise RuntimeError("service warming up")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue