2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +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

@ -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