-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
62 lines (55 loc) · 1.22 KB
/
pytest.ini
File metadata and controls
62 lines (55 loc) · 1.22 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
# pytest configuration for NexusAI backend tests
[pytest]
# Test discovery
testpaths = tests/backend
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--strict-markers
--tb=short
--cov=src/api
--cov-report=html
--cov-report=term-missing
--cov-report=xml
--cov-fail-under=80
# Markers
markers =
unit: Unit tests
integration: Integration tests
slow: Slow running tests
database: Tests requiring database
redis: Tests requiring Redis
celery: Tests requiring Celery
auth: Authentication tests
models: Model management tests
inference: Inference engine tests
cameras: Camera streaming tests
# Coverage options
[coverage:run]
source = src/api
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/venv/*
*/migrations/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
# Logging
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
# Timeout
timeout = 300
timeout_method = thread