wrongmove/tests/unit
Viktor Barzin 9fdf7fd356 wrongmove: stabilise setup_periodic_tasks tests after market-aggregator add
CI test-unit failed on pipeline #49 because the three TestSetupPeriodicTasks
cases asserted exact call counts on `sender.add_periodic_task` and the
new unconditional `daily-market-aggregator` registration bumped each by
one. Fix:

- `tasks/listing_tasks.py`: lifted the market-aggregator registration
  out of the SchedulesConfig try-block — it's now independent of the
  user's SCRAPE_SCHEDULES (a malformed scrape config no longer takes
  the aggregator down with it).
- `tests/unit/test_listing_tasks.py`: updated the four cases to account
  for the +1 unconditional aggregator call. `test_handles_config_error_
  gracefully` now asserts the aggregator still registers when
  SchedulesConfig.from_env raises (regression coverage for the
  independence guarantee).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 12:07:50 +00:00
..
__init__.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_auth.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_cli.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_debug_cli.py Add debug CLI decisions, POIs, and tasks subcommands 2026-02-22 15:15:30 +00:00
test_decision_filtering.py fix: QA fixes for property decisions feature 2026-02-21 14:04:34 +00:00
test_decision_repository.py feat: add DecisionRepository with unit tests 2026-02-21 13:52:20 +00:00
test_decision_routes.py feat: add decision API routes with tests 2026-02-21 13:54:38 +00:00
test_decision_service.py wrongmove: add "seen" soft-hide decision with price-aware resurfacing 2026-05-16 11:07:44 +00:00
test_district_service.py Add comprehensive test suite: 219 new tests across backend and frontend 2026-02-10 21:59:45 +00:00
test_districts.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_dockerfile_uid.py wrongmove: round-3 fix sweep — scrape pipeline, BUY tab, filter URL state, render hygiene, map polish 2026-05-10 22:27:29 +00:00
test_export_service.py Add comprehensive test suite: 219 new tests across backend and frontend 2026-02-10 21:59:45 +00:00
test_floorplan.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_floorplan_detector.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_frontend_build_config.py fix: skip frontend config tests when frontend/ dir absent (Docker build) 2026-02-21 15:52:43 +00:00
test_image_fetcher.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_listing_cache.py wrongmove: round-3 fix sweep — scrape pipeline, BUY tab, filter URL state, render hygiene, map polish 2026-05-10 22:27:29 +00:00
test_listing_fetcher.py Refactor backend for cleaner error handling, DRY, and type safety 2026-02-10 22:19:24 +00:00
test_listing_processor.py Refactor backend for cleaner error handling, DRY, and type safety 2026-02-10 22:19:24 +00:00
test_listing_service.py Add comprehensive test suite: 219 new tests across backend and frontend 2026-02-10 21:59:45 +00:00
test_listing_tasks.py wrongmove: stabilise setup_periodic_tasks tests after market-aggregator add 2026-05-16 12:07:50 +00:00
test_market_aggregator.py wrongmove: daily price-trend monitoring (per-listing badge + macro strip) 2026-05-16 12:02:25 +00:00
test_metrics_guard.py Add API rate limiting, metrics guard, and audit middleware 2026-02-08 00:45:43 +00:00
test_models.py Add security regression tests for all hardening fixes 2026-02-08 19:42:53 +00:00
test_openapi_disabled.py Add API anti-abuse hardening: disable docs in prod, origin validator, exception handler 2026-02-08 20:06:46 +00:00
test_origin_validator.py Add API anti-abuse hardening: disable docs in prod, origin validator, exception handler 2026-02-08 20:06:46 +00:00
test_passkey_error_handling.py Add security regression tests for all hardening fixes 2026-02-08 19:42:53 +00:00
test_poi_validation.py Add security regression tests for all hardening fixes 2026-02-08 19:42:53 +00:00
test_query.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_query_splitter.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_rate_limiter.py Add security regression tests for all hardening fixes 2026-02-08 19:42:53 +00:00
test_redis_lock.py wrongmove: round-3 fix sweep — scrape pipeline, BUY tab, filter URL state, render hygiene, map polish 2026-05-10 22:27:29 +00:00
test_redis_repository.py wrongmove: round-3 fix sweep — scrape pipeline, BUY tab, filter URL state, render hygiene, map polish 2026-05-10 22:27:29 +00:00
test_repository.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_route_calculator.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_route_serializer.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_routing.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_schedule_config.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_security_headers.py Add API anti-abuse hardening: disable docs in prod, origin validator, exception handler 2026-02-08 20:06:46 +00:00
test_task_service.py Add security regression tests for all hardening fixes 2026-02-08 19:42:53 +00:00
test_throttle_detection.py Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/ 2026-02-07 23:01:20 +00:00
test_unhandled_exception.py Add API anti-abuse hardening: disable docs in prod, origin validator, exception handler 2026-02-08 20:06:46 +00:00