diff --git a/InvenTree/InvenTree/ci_render_js.py b/InvenTree/InvenTree/ci_render_js.py index e747f1a3c0..94530db096 100644 --- a/InvenTree/InvenTree/ci_render_js.py +++ b/InvenTree/InvenTree/ci_render_js.py @@ -3,14 +3,14 @@ Pull rendered copies of the templated only used for testing the js files! - This file is omited from coverage """ -from django.test import TestCase -from django.contrib.auth import get_user_model +from django.test import TestCase # pragma: no cover +from django.contrib.auth import get_user_model # pragma: no cover -import os -import pathlib +import os # pragma: no cover +import pathlib # pragma: no cover -class RenderJavascriptFiles(TestCase): +class RenderJavascriptFiles(TestCase): # pragma: no cover """ A unit test to "render" javascript files. diff --git a/InvenTree/InvenTree/wsgi.py b/InvenTree/InvenTree/wsgi.py index c6bef4d663..9c4d72edbc 100644 --- a/InvenTree/InvenTree/wsgi.py +++ b/InvenTree/InvenTree/wsgi.py @@ -7,10 +7,10 @@ For more information on this file, see 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 diff --git a/setup.cfg b/setup.cfg index 8bf8acdf75..b4b0af8836 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,10 +20,3 @@ max-complexity = 20 [coverage:run] source = ./InvenTree -omit= - InvenTree/wsgi.py - InvenTree/ci_render_js.py -[coverage:report] -omit= - InvenTree/wsgi.py - InvenTree/ci_render_js.py