3👍
✅
See this issue on django_coverage project page.
Also, take a look to coverage.py official FAQ, in particular this one:
Q: Why do the bodies of functions (or classes) show as executed,
but the def lines do not?
Seems that the coverage machinery is started after your model is actually imported.
Try to back to a standard Django testing scenario (using a builtin test runner) and run coverage manually by issuing these commands:
coverage run --source='.' ./manage.py test
coverage report
coverage html
See if the report is different.
Source:stackexchange.com