- Add pytest config with 90% coverage threshold - 15 test files covering all routers, services, schemas, models - 300 tests: unit tests, integration tests, edge cases, mocked external APIs - Update CI workflow to run pytest with coverage enforcement - Mock external services (Genius, MusicBrainz, RadioBrowser) - In-memory SQLite DB per test via conftest fixtures
9 lines
264 B
INI
9 lines
264 B
INI
[pytest]
|
|
testpaths = backend/tests
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
addopts = -v --tb=short --cov=app --cov-report=term-missing --cov-fail-under=90 -W ignore::ResourceWarning
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|