Repository navigation
Expand file tree
/
Copy pathpytest.ini
More file actions
75 lines (66 loc) · 1.43 KB
/
Copy pathpytest.ini
File metadata and controls
75 lines (66 loc) · 1.43 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
[pytest]
# Pytest configuration for LocalChat
# Test discovery
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
-v
--strict-markers
--tb=short
--cov=.
--cov-report=term-missing
--cov-report=html
--cov-report=xml
# Markers
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (slower, require services)
slow: Slow tests (> 1 second)
db: Tests requiring database
ollama: Tests requiring Ollama service
rag: Tests for RAG functionality
api: Tests for API endpoints
validation: Tests for input validation
sanitization: Tests for input sanitization
exceptions: Tests for exception classes
# Coverage options
[coverage:run]
source = .
relative_files = True
omit =
*/tests/*
*/venv/*
*/env/*
*/.venv/*
*/site-packages/*
*/__pycache__/*
*/migrations/*
setup.py
test_*.py
conftest.py
[coverage:report]
precision = 2
relative_files = True
show_missing = True
skip_covered = False
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
@abc.abstractmethod
[coverage:html]
directory = htmlcov
[coverage:xml]
output = coverage.xml
# Warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning