diff options
author | Emily O'Leary <Emma.C.Echo@gmail.com> | 2013-06-25 20:57:50 -0400 |
---|---|---|
committer | Emily O'Leary <Emma.C.Echo@gmail.com> | 2013-06-25 20:57:50 -0400 |
commit | 4a698535bc97b37c8eb42ffea2cc3e7bd48565e6 (patch) | |
tree | 5ee573acc9f8c91cb53e44a1ee55529f3c74e5e1 /mediagoblin/app.py | |
parent | c1b342ba95e99407ccedfdfad306ddb36fde6eb0 (diff) | |
download | mediagoblin-4a698535bc97b37c8eb42ffea2cc3e7bd48565e6.tar.lz mediagoblin-4a698535bc97b37c8eb42ffea2cc3e7bd48565e6.tar.xz mediagoblin-4a698535bc97b37c8eb42ffea2cc3e7bd48565e6.zip |
Improved test runtime from 352 seconds to 59 seconds by implementing an in-memory sqlite DB and including an option to run migrations on this newly created database by adding a config option called run_migrations to the config_spec and passing it along in app.py to the setup_database function.
Diffstat (limited to 'mediagoblin/app.py')
-rw-r--r-- | mediagoblin/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/app.py b/mediagoblin/app.py index 58058360..3da166ab 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -86,7 +86,7 @@ class MediaGoblinApp(object): setup_plugins() # Set up the database - self.db = setup_database() + self.db = setup_database(app_config['run_migrations']) # Register themes self.theme_registry, self.current_theme = register_themes(app_config) |