diff --git a/CHANGELOG.md b/CHANGELOG.md index 012536a0..caddfb80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All enhancements and patches to Cookiecutter Django will be documented in this file. +## [2020-09-10] +### Changed +- Added a workaround on config/settings/test.py to fix the coverage.py + django_coverage_plugin "Can't add file tracer data for unmeasured file" warning message (https://github.com/feldroy/django-crash-course/issues/329) - [@luzfcb](https://github.com/luzfcb) + ## [2020-09-09] ### Changed - Removed env.sample file - [@luzfcb](https://github.com/luzfcb) diff --git a/{{cookiecutter.project_slug}}/config/settings/test.py b/{{cookiecutter.project_slug}}/config/settings/test.py index 3ded0c73..77a8166b 100644 --- a/{{cookiecutter.project_slug}}/config/settings/test.py +++ b/{{cookiecutter.project_slug}}/config/settings/test.py @@ -43,6 +43,10 @@ ], ) ] +# Workaround to: +# https://github.com/nedbat/coveragepy/issues/1011 +# https://github.com/nedbat/django_coverage_plugin/issues/69 +TEMPLATES[-1]["OPTIONS"]["debug"] = True # type: ignore[index] # noqa: F405 # EMAIL # ------------------------------------------------------------------------------