test(freshness): фикстура nspd_geo под новый порог stale_days=90
All checks were successful
CI Trade-In / changes (pull_request) Successful in 8s
CI / changes (pull_request) Successful in 8s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m59s
CI / backend-tests (pull_request) Successful in 14m56s
All checks were successful
CI Trade-In / changes (pull_request) Successful in 8s
CI / changes (pull_request) Successful in 8s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m59s
CI / backend-tests (pull_request) Successful in 14m56s
This commit is contained in:
parent
fcd88aa756
commit
7af29f23ed
1 changed files with 3 additions and 5 deletions
|
|
@ -89,8 +89,8 @@ def test_freshness_mixed_statuses() -> None:
|
||||||
"last_status": None,
|
"last_status": None,
|
||||||
},
|
},
|
||||||
"nspd_geo_jobs": {
|
"nspd_geo_jobs": {
|
||||||
"last_success_at": _ago(40.0), # >= stale_days=30 → critical → failed
|
"last_success_at": _ago(100.0), # >= stale_days=90 → critical → failed
|
||||||
"last_attempt_at": _ago(40.0),
|
"last_attempt_at": _ago(100.0),
|
||||||
"upd_24h": 0,
|
"upd_24h": 0,
|
||||||
"upd_7d": 0,
|
"upd_7d": 0,
|
||||||
"last_status": "done",
|
"last_status": "done",
|
||||||
|
|
@ -230,9 +230,7 @@ def test_freshness_all_healthy() -> None:
|
||||||
"last_status": "done",
|
"last_status": "done",
|
||||||
"recent_output": 100000, # выше любого floor → flagged-источники ok
|
"recent_output": 100000, # выше любого floor → flagged-источники ok
|
||||||
}
|
}
|
||||||
rows = {
|
rows = {s.table: dict(fresh_row) for s in admin_scrape._FRESHNESS_SOURCES}
|
||||||
s.table: dict(fresh_row) for s in admin_scrape._FRESHNESS_SOURCES
|
|
||||||
}
|
|
||||||
_override_db(_make_db(rows))
|
_override_db(_make_db(rows))
|
||||||
try:
|
try:
|
||||||
resp = TestClient(app).get(ENDPOINT)
|
resp = TestClient(app).get(ENDPOINT)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue