Skip to content

fix: reduce test interference (#779)#950

Merged
maxachis merged 1 commit intodevfrom
fix/reduce-test-interference
Feb 16, 2026
Merged

fix: reduce test interference (#779)#950
maxachis merged 1 commit intodevfrom
fix/reduce-test-interference

Conversation

@maxachis
Copy link
Copy Markdown
Contributor

Summary

  • Expands wipe_database() with 3 missing log tables (change_log, table_count_log, notification_log) that don't cascade from core tables
  • Centralizes clear_test_data() by delegating to wipe_database(), fixing commented-out Agency/User/Locality deletions
  • Fixes module-level dict mutation in test_database.py that leaked state across fixture runs
  • Removes redundant dev_db_client and clear_data_requests fixtures and all redundant cleanup calls in tests that already receive auto-cleaning fixtures
  • Fixes MultiLocationSetup and notification location manager to be resilient to the more thorough cleanup

Test plan

  • All 260 tests pass locally (uv run pytest tests -x)
  • basedpyright passes with 0 errors
  • CI pipeline passes

🤖 Generated with Claude Code

…dant fixtures (#779)

- Expand wipe_database() with change_log, table_count_log, notification_log tables
- Make clear_test_data() delegate to wipe_database() for centralized cleanup
- Fix module-level dict mutation in test_database.py setup_fake_locations fixture
- Remove redundant dev_db_client and clear_data_requests fixtures from conftest
- Remove redundant clear_test_data() and wipe_database() calls in tests that
  already receive auto-cleaning fixtures
- Fix MultiLocationSetup to explicitly create Pittsburgh locality
- Defer data creation in notification location manager to avoid fixture ordering issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maxachis maxachis merged commit 52e780e into dev Feb 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant