浏览代码

Add forgotten variables

Bastien Sevajol 9 年前
父节点
当前提交
51f5ac8645
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tracim/tracim/tests/__init__.py

+ 2 - 2
tracim/tracim/tests/__init__.py 查看文件

36
     return TestApp(loadapp('config:test.ini#%s' % name, relative_to=getcwd()))
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
     """Setup the application."""
40
     """Setup the application."""
41
 
41
 
42
     engine = config['tg.app_globals'].sa_engine
42
     engine = config['tg.app_globals'].sa_engine
48
     cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
48
     cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
49
     logger.debug(setup_app, 'After setup, before run...')
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
     logger.debug(setup_app, 'After run...')
52
     logger.debug(setup_app, 'After run...')
53
 
53
 
54
 
54