small docstring changes

This commit is contained in:
Matthias 2021-11-20 19:46:38 +01:00
parent e7babfbb7c
commit 33bc77e138
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 6 additions and 5 deletions

View File

@ -875,12 +875,13 @@ MAINTENANCE_MODE_RETRY_AFTER = 60
PLUGIN_DIRS = ['plugin.builtin', ]
if not TESTING:
# load local deploy directory in prod
PLUGIN_DIRS.append('plugins')
# load samples if in debug mode
if DEBUG or TESTING:
# load samples in debug mode
PLUGIN_DIRS.append('plugin.samples')
# Test settings
PLUGIN_TESTING = get_setting('PLUGIN_TESTING', TESTING) # used to force enable everything plugin
PLUGIN_TESTING_SETUP = get_setting('PLUGIN_TESTING_SETUP', False)
# Plugin test settings
PLUGIN_TESTING = get_setting('PLUGIN_TESTING', TESTING) # are plugins beeing tested?
PLUGIN_TESTING_SETUP = get_setting('PLUGIN_TESTING_SETUP', False) # load plugins from setup hooks in testing?

View File

@ -129,7 +129,7 @@ class Plugins:
if modules:
[self.plugin_modules.append(item) for item in modules]
# check if running in testing mode and apps should be loaded from hooks
# check if not running in testing mode and apps should be loaded from hooks
if (not settings.PLUGIN_TESTING) or (settings.PLUGIN_TESTING and settings.PLUGIN_TESTING_SETUP):
# Collect plugins from setup entry points
for entry in metadata.entry_points().get('inventree_plugins', []):