omit coverage via setup.cfg

This commit is contained in:
Matthias 2022-02-13 21:19:41 +01:00
parent a6621a5327
commit 73500a4b82
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -6,7 +6,6 @@ It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
# pragma: no cover
import os

View File

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