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:
Joar Wandborg
2012-09-15 17:54:34 +02:00
parent 999f91eb8a
commit 30520c92cc
3 changed files with 3 additions and 3 deletions

View File

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