From d3a4aede294ab6d4c2dd5a772403b5cc8cf76ff6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 17 Oct 2021 19:32:06 +0200 Subject: [PATCH] do not load external plugins for tests --- InvenTree/InvenTree/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index a4e7870143..52f4eb3dca 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -736,10 +736,10 @@ MARKDOWNIFY_BLEACH = False # Plugins PLUGIN_URL = 'plugin' -PLUGIN_DIRS = [ - 'plugin.builtin', - 'plugins', -] +PLUGIN_DIRS = ['plugin.builtin', ] + +if not TESTING: + PLUGIN_DIRS.append('plugins') # load samples if in debug mode if DEBUG or TESTING: