-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpytest.ini
More file actions
40 lines (37 loc) · 1.13 KB
/
pytest.ini
File metadata and controls
40 lines (37 loc) · 1.13 KB
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
39
40
[tool:pytest]
minversion = 6.0
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts =
-v
--tb=short
--strict-markers
--strict-config
--cov=src
--cov-report=html
--cov-report=term-missing
--cov-fail-under=80
--asyncio-mode=auto
--asyncio-default-fixture-loop-scope=function
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
auth: marks tests related to authentication
api: marks tests related to API endpoints
service: marks tests related to service layer
repository: marks tests related to repository layer
domain: marks tests related to domain entities
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*@overload.*:UserWarning
ignore::pytest.PytestDeprecationWarning
ignore::pytest_asyncio.plugin.PytestDeprecationWarning
# Asyncio settings for pytest-asyncio
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
asyncio_fixture_loop_scope = function