mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
refactor(downloader): make dl.result the one writer of the speed limit and drop speed_limit_locked
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user