refactor(downloader): make dl.result the one writer of the speed limit and drop speed_limit_locked

This commit is contained in:
imSp4rky
2026-12-04 15:11:54 -07:00
parent 491764d991
commit 8b76bb47a6
9 changed files with 88 additions and 69 deletions
+1 -2
View File
@@ -125,9 +125,8 @@ def example_plugins(monkeypatch: pytest.MonkeyPatch) -> None:
@pytest.fixture(autouse=True)
def no_speed_limit(monkeypatch: pytest.MonkeyPatch) -> None:
"""Start with no speed limit, so a limit that an earlier test locked cannot block a later one."""
"""Start with no speed limit, so a limit that an earlier test set cannot slow a later one."""
monkeypatch.setattr(requests_downloader, "speed_limiter", None)
monkeypatch.setattr(requests_downloader, "speed_limit_locked", False)
@pytest.fixture