perf: speed up test suite with parallel execution

- Enable pytest-xdist with -n auto for parallel test execution
- Consolidate migrated_db fixture in conftest.py (was duplicated in 4 files)
- Remove local fixture definitions and unused imports from test files

Test execution: ~24s -> ~5s (~5x speedup)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-28 07:25:18 +00:00
parent c3461b2275
commit cc32370d49
6 changed files with 12 additions and 47 deletions

View File

@@ -51,4 +51,4 @@ pythonpath = ["src"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "--durations=20"
addopts = "--durations=20 -n auto"