File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ jobs:
110110 if : env.skip_backend_tests == 'false'
111111 run : |
112112 cd src
113- pytest --cov=. --cov-report=term-missing --cov-report=xml
113+ pytest tests/backend --cov=backend --cov-report=term-missing --cov-report=xml --cov-fail-under=80
114114
115115
116116
Original file line number Diff line number Diff line change @@ -24,4 +24,25 @@ line_length = 88
2424testpaths = [" tests" ] # Ensure this points to your test folder
2525python_files = [" test_*.py" , " *_test.py" ] # Recognize test files
2626python_classes = [" Test*" ] # Recognize test classes
27- python_functions = [" test_*" ] # Recognize test functions
27+ python_functions = [" test_*" ] # Recognize test functions
28+ asyncio_mode = " auto"
29+
30+ [tool .coverage .run ]
31+ source = [" backend" ]
32+ branch = true
33+ omit = [
34+ " */tests/*" ,
35+ " */__pycache__/*" ,
36+ " */venv/*" ,
37+ ]
38+
39+ [tool .coverage .report ]
40+ fail_under = 80
41+ show_missing = true
42+ exclude_lines = [
43+ " pragma: no cover" ,
44+ " def __repr__" ,
45+ " raise NotImplementedError" ,
46+ " if __name__ == .__main__.:" ,
47+ " if TYPE_CHECKING:" ,
48+ ]
Original file line number Diff line number Diff line change 1+ """Tests for auth module."""
File renamed without changes.
You can’t perform that action at this time.
0 commit comments