mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
Include coverage
This commit is contained in:
parent
7dc9248da8
commit
b938934683
3 changed files with 36 additions and 0 deletions
33
.coveragerc
Normal file
33
.coveragerc
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain about missing debug-only code:
|
||||
def __repr__
|
||||
if self\.debug
|
||||
def __unicode__
|
||||
def __repr__
|
||||
if settings.DEBUG
|
||||
raise NotImplementedError
|
||||
from django\.
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
|
||||
[run]
|
||||
omit =
|
||||
*tests*
|
||||
*migrations*
|
||||
*management*
|
||||
*urls*
|
||||
*site-packages*
|
||||
*src*
|
||||
*manage*
|
||||
*settings*
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
|||
*.pyc
|
||||
templates/
|
||||
|
||||
.coverage
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
Django>=1.4
|
||||
coverage
|
||||
|
|
|
|||
Loading…
Reference in a new issue