File tree 4 files changed +17
-1
lines changed
4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 10
10
rtd_tests/*
11
11
*/**/tests/**
12
12
wsgi.py
13
+ plugins = django_coverage_plugin
13
14
14
15
[report]
15
16
exclude_lines =
Original file line number Diff line number Diff line change @@ -37,6 +37,15 @@ class CommunityTestSettings(CommunityBaseSettings):
37
37
}
38
38
}
39
39
40
+ @property
41
+ def TEMPLATES (self ):
42
+ templates = super ().TEMPLATES
43
+
44
+ # Set DEBUG on templates to allow running Django coverage plugin
45
+ templates [0 ]["OPTIONS" ]["debug" ] = True
46
+
47
+ return templates
48
+
40
49
@property
41
50
def PASSWORD_HASHERS (self ):
42
51
# Speed up tests by using a fast password hasher as the default.
Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ pytest-cov
12
12
pytest-mock
13
13
14
14
requests-mock
15
+
16
+ django_coverage_plugin
Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ colorama==0.4.6
79
79
# -r requirements/pip.txt
80
80
# bumpver
81
81
coverage[toml]==7.8.0
82
- # via pytest-cov
82
+ # via
83
+ # django-coverage-plugin
84
+ # pytest-cov
83
85
cron-descriptor==1.4.5
84
86
# via
85
87
# -r requirements/pip.txt
@@ -138,6 +140,8 @@ django-celery-beat==2.7.0
138
140
# via -r requirements/pip.txt
139
141
django-cors-headers==4.7.0
140
142
# via -r requirements/pip.txt
143
+ django-coverage-plugin==3.1.0
144
+ # via -r requirements/testing.in
141
145
django-crispy-forms==1.14.0
142
146
# via -r requirements/pip.txt
143
147
django-csp==3.8
You can’t perform that action at this time.
0 commit comments