|
All checks were successful
CI Trade-In / changes (pull_request) Successful in 10s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI Trade-In / browser-tests (pull_request) Has been skipped
CI / changes (pull_request) Successful in 12s
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 2m9s
CI / backend-tests (pull_request) Successful in 6m46s
analyze_parcel() в конце безусловно дёргает forecast_site_finder_report.delay(...) (best-effort §22-форсайт, обёрнут в try/except). В тестовой песочнице Celery-брокер (Redis) недоступен, и .delay() синхронно ждёт kombu reconnect-backoff (~69с) прежде чем исключение будет проглочено — эта пауза сидела внутри КАЖДОГО теста, дёргающего POST /analyze без мока форсайт-таски (9 файлов tests/api/v1/test_analyze_*.py, test_2464*.py — 32 теста, ~2218 из 2503с полного прогона). Добавлена autouse-фикстура в tests/api/v1/conftest.py по образцу уже существующей _stub_zone_regulation_resolver — глушит .delay в no-op MagicMock для всех тестов каталога. Тесты самого enqueue (test_parcels_forecast.py, test_run_history_and_response_contract.py) переопределяют тот же target своим per-test patch поверх авто-фикстуры (nested mock-scope), их проверки не затронуты. Проверено: 7 целевых файлов (32 теста) — 36.7с суммарно вместо таймаутов по 90с на файл, все зелёные. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JY6iWDnGDthdvsMWgK1BMG |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_2464_confidence_zoning_source.py | ||
| test_2464_manual_list_validation.py | ||
| test_2464_parcels_savepoint_pair.py | ||
| test_2464_resume_geo_job_guard.py | ||
| test_2464g_noise_source_filter.py | ||
| test_2934_no_fake_geology_label.py | ||
| test_admin_cadastre.py | ||
| test_admin_ekburg_permits.py | ||
| test_admin_jobs_settings.py | ||
| test_admin_scrape_freshness.py | ||
| test_admin_scrape_kn_catalog_waf_guard.py | ||
| test_analyze_competitors_status.py | ||
| test_analyze_inline_weights.py | ||
| test_analyze_market_price.py | ||
| test_analyze_osrm_distances.py | ||
| test_analyze_parcel_meta.py | ||
| test_analyze_recent_permits.py | ||
| test_analyze_zoning_regulation.py | ||
| test_chat.py | ||
| test_concept_recompute.py | ||
| test_custom_pois.py | ||
| test_insights.py | ||
| test_locations.py | ||
| test_market_pulse_and_neighbors_honesty.py | ||
| test_osrm_per_category.py | ||
| test_own_projects.py | ||
| test_parcel_best_layouts.py | ||
| test_parcel_by_bbox.py | ||
| test_parcel_competitors.py | ||
| test_parcel_connection_capacity.py | ||
| test_parcel_connection_points.py | ||
| test_parcel_neighbor_buildings.py | ||
| test_parcel_report.py | ||
| test_parcel_snapshot_exclude_dev.py | ||
| test_parcel_utility_infrastructure.py | ||
| test_parcels_forecast.py | ||
| test_poi_detail_from_tags.py | ||
| test_run_history_and_response_contract.py | ||