mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user