-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
68 lines (60 loc) 路 1.28 KB
/
Copy pathpytest.ini
File metadata and controls
68 lines (60 loc) 路 1.28 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
[pytest]
# pytest configuration for sage-github-manager
# Test file patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test discovery
testpaths = tests
# Exclude patterns
norecursedirs =
.git
.tox
dist
build
*.egg
__pycache__
.venv
venv
node_modules
.pytest_cache
# Test markers
markers =
unit: Unit tests
integration: Integration tests
slow: Slow running tests
network: Tests that require network access
github_api: Tests that call GitHub API (requires GITHUB_TOKEN)
# Coverage options
addopts =
--verbose
--strict-markers
--tb=short
--color=yes
# Coverage reporting
--cov=sage_github
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-report=xml
# Fail on warnings (optional, can be removed if too strict)
# -W error::DeprecationWarning
# Minimum coverage threshold (optional)
# [coverage:report]
# fail_under = 80
# Coverage paths
[coverage:run]
source = src/sage_github
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod