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 authored and GitHub committed 2022-05-22 15:54:13 +10:00
1 parent 0ec067da40
commit 6247eecf69
7 files changed
+26 -10

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ class PluginAppConfig(AppConfig):
def ready(self):
if settings.PLUGINS_ENABLED:
if not canAppAccessDatabase(allow_test=True):
logger.info("Skipping plugin loading sequence")
logger.info("Skipping plugin loading sequence") # pragma: no cover
else:
logger.info('Loading InvenTree plugins')
@@ -48,4 +48,4 @@ class PluginAppConfig(AppConfig):
log_error(_('Your enviroment has an outdated git version. This prevents InvenTree from loading plugin details.'), 'load')
else:
logger.info("Plugins not enabled - skipping loading sequence")
logger.info("Plugins not enabled - skipping loading sequence") # pragma: no cover