Skip to content

Commit 239215c

Browse files
authored
Merge pull request #113 from opensafely-core/template-coverage
Add the settings and config for django-coverage-plugin
2 parents 75abdbb + ef83b09 commit 239215c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

airlock/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def get_env_var(name):
118118
"builtins": [
119119
"slippers.templatetags.slippers", # required for assets library
120120
],
121+
"debug": DEBUG, # required for template coverage
121122
},
122123
},
123124
]

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ DJANGO_SETTINGS_MODULE = "airlock.settings"
2020
branch = true
2121
# Required to get full coverage when using Playwright
2222
concurrency = ["greenlet", "thread"]
23+
plugins = ["django_coverage_plugin"]
24+
omit = ["*/assets/templates/*",]
2325

2426
[tool.coverage.report]
2527
fail_under = 100

0 commit comments

Comments
 (0)