2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

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 07:54:13 +02:00
committed by GitHub
parent 0ec067da40
commit 6247eecf69
7 changed files with 26 additions and 10 deletions

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