|
@@ -36,7 +36,7 @@ def load_app(name=application_name):
|
36
|
36
|
return TestApp(loadapp('config:test.ini#%s' % name, relative_to=getcwd()))
|
37
|
37
|
|
38
|
38
|
|
39
|
|
-def setup_app():
|
|
39
|
+def setup_app(section_name=None):
|
40
|
40
|
"""Setup the application."""
|
41
|
41
|
|
42
|
42
|
engine = config['tg.app_globals'].sa_engine
|
|
@@ -48,7 +48,7 @@ def setup_app():
|
48
|
48
|
cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
|
49
|
49
|
logger.debug(setup_app, 'After setup, before run...')
|
50
|
50
|
|
51
|
|
- cmd.run(Bunch(config_file='config:test.ini', section_name=None))
|
|
51
|
+ cmd.run(Bunch(config_file='config:test.ini', section_name=section_name))
|
52
|
52
|
logger.debug(setup_app, 'After run...')
|
53
|
53
|
|
54
|
54
|
|