ci: add pytest config to backend dir for CI compatibility
This commit is contained in:
parent
24c03426f8
commit
03670ef27a
20
backend/.coveragerc
Normal file
20
backend/.coveragerc
Normal 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
8
backend/pytest.ini
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user