Download tests/conftest.py from wuhp/bbscanner: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/wuhp/bbscanner/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/wuhp/bbscanner/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/wuhp/bbscanner/resolve/main/tests/conftest.py
461 Bytes
| """Keep provider-health scenarios independent without changing production cooldowns.""" | |
| import pytest | |
| from app import pipeline | |
| def isolated_archive_provider_health(monkeypatch): | |
| monkeypatch.setattr(pipeline, "_gau_failures", 0) | |
| monkeypatch.setattr(pipeline, "_gau_disabled_until", 0.0) | |
| monkeypatch.setattr(pipeline, "_gau_provider_failures", {}) | |
| monkeypatch.setattr(pipeline, "_gau_provider_disabled_until", {}) | |