瀏覽代碼

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,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