浏览代码

Merge branch 'master' into feature/ldap

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

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

41
     return TestApp(loadapp('config:test.ini#%s' % name, relative_to=getcwd()))
41
     return TestApp(loadapp('config:test.ini#%s' % name, relative_to=getcwd()))
42
 
42
 
43
 
43
 
44
-def setup_app():
44
+def setup_app(section_name=None):
45
     """Setup the application."""
45
     """Setup the application."""
46
 
46
 
47
     engine = config['tg.app_globals'].sa_engine
47
     engine = config['tg.app_globals'].sa_engine
53
     cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
53
     cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
54
     logger.debug(setup_app, 'After setup, before run...')
54
     logger.debug(setup_app, 'After setup, before run...')
55
 
55
 
56
-    cmd.run(Bunch(config_file='config:test.ini', section_name=None))
56
+    cmd.run(Bunch(config_file='config:test.ini', section_name=section_name))
57
     logger.debug(setup_app, 'After run...')
57
     logger.debug(setup_app, 'After run...')
58
 
58
 
59
 
59
 
188
         except Exception as e:
188
         except Exception as e:
189
             print('-> err ({})'.format(e.__str__()))
189
             print('-> err ({})'.format(e.__str__()))
190
 
190
 
191
-        setup_app()
191
+        setup_app(section_name=self.application_under_test)
192
         setup_db()
192
         setup_db()
193
 
193
 
194
 
194