-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest.ini
38 lines (32 loc) · 924 Bytes
/
pytest.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Configure pytest-asyncio
asyncio_mode = strict
asyncio_default_fixture_loop_scope = function
# Configure pytest-cov
addopts = --cov=apifrom --cov-report=term-missing
# Ignore specific warnings
filterwarnings =
ignore::DeprecationWarning:unittest.case
ignore::RuntimeWarning:asyncio.coroutines
ignore::RuntimeWarning:sys
# Configure test coverage
# addopts = --cov=apifrom --cov-report=term-missing --cov-report=xml --cov-report=html
# Markers
markers =
unit: Unit tests
integration: Integration tests
performance: Performance tests
security: Security tests
slow: Tests that take a long time to run
[coverage:run]
# Ignore certain directories for coverage
omit =
*/tests/*
*/site-packages/*
*/dist-packages/*
*/venv/*
setup.py