-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
58 lines (51 loc) · 1.22 KB
/
pytest.ini
File metadata and controls
58 lines (51 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
[pytest]
# Django settings module
DJANGO_SETTINGS_MODULE = config.settings.development
# Python path
pythonpath = .
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
--reuse-db
--cov=apps
--cov-report=html
--cov-report=term-missing
--cov-fail-under=80
--strict-markers
--verbose
--tb=short
# Markers for categorizing tests
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (slower, multiple components)
slow: Slow running tests
models: Model tests
views: View tests
forms: Form tests
utils: Utility function tests
signals: Signal handler tests
encryption: Encryption/decryption tests
streak: Streak calculation tests
statistics: Statistics and analytics tests
celery: Celery task tests
api: API endpoint tests
rate_limiting: Rate limiting/throttle tests (need actual throttle rates)
# Coverage settings
[coverage:run]
source = apps
omit =
*/migrations/*
*/tests/*
*/test_*.py
*/__init__.py
*/admin.py
*/apps.py
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
[coverage:html]
directory = htmlcov