From aae0018a72cf3f15dc337cd222b41438e7dc5e3e Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 22 Nov 2021 03:02:03 +0100 Subject: [PATCH] stop CI failing --- InvenTree/plugin/registry.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index aa180170db..d16575af2b 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -193,9 +193,10 @@ class Plugins: # option1: package, option2: file-based if (plugin.__name__ == disabled) or (plugin.__module__ == disabled): # errors are bad so disable the plugin in the database - plugin_db_setting.active = False - # TODO save the error to the plugin - plugin_db_setting.save(no_reload=True) + if not settings.PLUGIN_TESTING: + plugin_db_setting.active = False + # TODO save the error to the plugin + plugin_db_setting.save(no_reload=True) # add to inactive plugins so it shows up in the ui self.plugins_inactive[plug_key] = plugin_db_setting