Exclude testing exceptions from coverage (#3046)

* exclude testing excetions

* check user str

* check related users

* move no coverage marker

* fix assertation

* add test for filters

* do not cover logs
This commit is contained in:
Matthias Mair
2022-05-22 15:54:13 +10:00
committed by GitHub
parent 0ec067da40
commit 6247eecf69
7 changed files with 26 additions and 10 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ class TemplateTagTest(InvenTreeTestCase):
def test_hash(self):
result_hash = inventree_extras.inventree_commit_hash()
if settings.DOCKER:
if settings.DOCKER: # pragma: no cover
# Testing inside docker environment *may* return an empty git commit hash
# In such a case, skip this check
pass
@@ -67,7 +67,7 @@ class TemplateTagTest(InvenTreeTestCase):
def test_date(self):
d = inventree_extras.inventree_commit_date()
if settings.DOCKER:
if settings.DOCKER: # pragma: no cover
# Testing inside docker environment *may* return an empty git commit hash
# In such a case, skip this check
pass