-
-
Notifications
You must be signed in to change notification settings - Fork 356
Expand file tree
/
Copy pathpytest.ini
More file actions
64 lines (57 loc) · 1.63 KB
/
pytest.ini
File metadata and controls
64 lines (57 loc) · 1.63 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
# pytest configuration for Calibre-Web Automated
[pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
-p no:cacheprovider
--durations=10
# Markers for test categorization
markers =
smoke: Quick smoke tests that verify basic functionality (<30s total)
unit: Fast isolated unit tests (no Docker, <2 min total)
integration: Tests that involve multiple components (requires Docker)
docker_integration: Integration tests using Docker container (slow, 5-10 min)
docker_e2e: End-to-end tests requiring full Docker environment (very slow, 20-30 min)
e2e: End-to-end tests requiring full environment
docker: Tests that require Docker container
slow: Tests that take >30 seconds individually
network: Tests requiring network access
calibre: Tests requiring Calibre CLI tools
requires_calibre: Tests requiring Calibre tools
timeout: Test timeout in seconds
# Test execution settings
# Disable xdist for Docker tests (container conflicts)
norecursedirs = .git .tox dist build *.egg __pycache__
# Coverage options
[coverage:run]
source =
cps
scripts
omit =
*/tests/*
*/test_*
*/__pycache__/*
*/site-packages/*
cps/static/*
cps/translations/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
# Directories to exclude
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod