-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
72 lines (64 loc) · 1.62 KB
/
pytest.ini
File metadata and controls
72 lines (64 loc) · 1.62 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
[pytest]
# Pytest configuration for WhoseOnFirst
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Minimum Python version
minversion = 7.0
# Test paths
testpaths = tests
# Output options
addopts =
# Verbose output
-v
# Show extra test summary info
-ra
# Show local variables in tracebacks
-l
# Strict markers (fail on unknown markers)
--strict-markers
# Strict config (fail on unknown config options)
--strict-config
# Coverage options
--cov=src
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-fail-under=80
# Disable warnings summary
--disable-warnings
# Markers for categorizing tests
markers =
unit: Unit tests for individual components
integration: Integration tests for multiple components
repository: Tests for repository layer
service: Tests for service layer
api: Tests for API endpoints
slow: Tests that take more than 1 second
database: Tests that require database access
# Coverage options
[coverage:run]
source = src
omit =
*/tests/*
*/venv/*
*/__pycache__/*
*/site-packages/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
exclude_lines =
# Standard pragma
pragma: no cover
# Don't complain about missing debug code
def __repr__
def __str__
# Don't complain if tests don't hit defensive assertion code
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run
if __name__ == .__main__.:
# Type checking blocks
if TYPE_CHECKING:
@abstractmethod