omit helpers from coverage

This commit is contained in:
Matthias 2022-03-13 20:09:54 +01:00
parent 1c7f37e52a
commit 646107fee0
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
3 changed files with 9 additions and 16 deletions

View File

@ -3,14 +3,14 @@ Pull rendered copies of the templated
only used for testing the js files! - This file is omited from coverage only used for testing the js files! - This file is omited from coverage
""" """
from django.test import TestCase from django.test import TestCase # pragma: no cover
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model # pragma: no cover
import os import os # pragma: no cover
import pathlib import pathlib # pragma: no cover
class RenderJavascriptFiles(TestCase): class RenderJavascriptFiles(TestCase): # pragma: no cover
""" """
A unit test to "render" javascript files. A unit test to "render" javascript files.

View File

@ -7,10 +7,10 @@ For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
""" """
import os import os # pragma: no cover
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application # pragma: no cover
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "InvenTree.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "InvenTree.settings") # pragma: no cover
application = get_wsgi_application() application = get_wsgi_application() # pragma: no cover

View File

@ -20,10 +20,3 @@ max-complexity = 20
[coverage:run] [coverage:run]
source = ./InvenTree source = ./InvenTree
omit=
InvenTree/wsgi.py
InvenTree/ci_render_js.py
[coverage:report]
omit=
InvenTree/wsgi.py
InvenTree/ci_render_js.py