-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpytest.ini
More file actions
92 lines (83 loc) · 1.87 KB
/
Copy pathpytest.ini
File metadata and controls
92 lines (83 loc) · 1.87 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[pytest]
# Pytest configuration file
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Minimum version
minversion = 7.0
# Test paths
testpaths = tests
# Output options
addopts =
# Verbose output
-v
# Show summary of all test outcomes
-ra
# Show local variables in tracebacks
--showlocals
# Strict markers (only registered markers allowed)
--strict-markers
# Coverage options
--cov=config
--cov=constants
--cov=exceptions
--cov=core
--cov=utils
--cov=services
--cov=webui
--cov-report=html
--cov-report=term-missing
--cov-report=xml
# Warnings
-W ignore::DeprecationWarning
# Asyncio mode
--asyncio-mode=auto
# Markers for categorizing tests
markers =
unit: Unit tests (fast, no external dependencies)
integration: Integration tests (may require database, etc.)
slow: Slow running tests
auth: Authentication related tests
service: Service layer tests
blueprint: Blueprint/route tests
core: Core module tests
config: Configuration tests
utils: Utility module tests
quality: Quality monitoring tests
security: Security-related tests
# Log output
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Asyncio
asyncio_mode = auto
# Coverage options
[coverage:run]
source =
config
constants
exceptions
core
utils
services
webui
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/migrations/*
[coverage:report]
exclude_lines =
# Standard exclusions
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
# Async context managers
async def __aenter__
async def __aexit__