Fixed tests
- Adapt tests to new global_config arg for run_dbupdate - Account for [plugins] not being set in config
This commit is contained in:
@@ -56,7 +56,7 @@ def load_models(app_config):
|
||||
_log.debug("Loading %s.models", media_type)
|
||||
__import__(media_type + ".models")
|
||||
|
||||
for plugin in mg_globals.global_config['plugins'].keys():
|
||||
for plugin in mg_globals.global_config.get('plugins', {}).keys():
|
||||
_log.debug("Loading %s.models", plugin)
|
||||
try:
|
||||
__import__(plugin + ".models")
|
||||
|
||||
Reference in New Issue
Block a user