Skip to content

Commit

Permalink
Fix coverage.py + django_coverage_plugin unexpected warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
luzfcb committed Sep 10, 2020
1 parent 4f97300 commit deadc64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 4 additions & 0 deletions {{cookiecutter.project_slug}}/config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit deadc64

Please sign in to comment.