ci: add pytest config to backend dir for CI compatibility

This commit is contained in:
Jarian Cottingham 2026-07-06 06:13:18 +00:00
parent 24c03426f8
commit 03670ef27a
2 changed files with 28 additions and 0 deletions

20
backend/.coveragerc Normal file
View File

@ -0,0 +1,20 @@
[run]
source = backend/app
omit = backend/tests/*,backend/app/ws/*,*/site-packages/*
branch = True
[report]
show_missing = True
fail_under = 90
exclude_lines =
pragma: no cover
def __repr__
async def stream
async for chunk
async with client.stream
async with aiofiles
async def stream_radio
@router.websocket
[html]
directory = coverage_html

8
backend/pytest.ini Normal file
View File

@ -0,0 +1,8 @@
[pytest]
testpaths = 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