17 lines
557 B
Python
17 lines
557 B
Python
"""#1731 — default avito_proxy_max_rotations bumped 2→4 (Datadome ban recovery).
|
|
|
|
Reactive rotation budget per page is raised so a sweep has more chances to recover
|
|
mid-run after the proactive rotate-at-start. No network, no DB.
|
|
"""
|
|
|
|
import os
|
|
|
|
os.environ.setdefault("DATABASE_URL", "postgresql+psycopg://test:test@localhost/test_db")
|
|
|
|
from app.core.config import Settings
|
|
|
|
|
|
def test_avito_proxy_max_rotations_default_is_4() -> None:
|
|
"""Field default must be 4 (was 2 before #1731)."""
|
|
s = Settings()
|
|
assert s.avito_proxy_max_rotations == 4
|