Преглед изворни кода

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,7 +41,7 @@ def load_app(name=application_name):
41 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 45
     """Setup the application."""
46 46
 
47 47
     engine = config['tg.app_globals'].sa_engine
@@ -53,7 +53,7 @@ def setup_app():
53 53
     cmd = SetupAppCommand(Bunch(options=Bunch(verbose_level=1)), Bunch())
54 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 57
     logger.debug(setup_app, 'After run...')
58 58
 
59 59
 
@@ -188,7 +188,7 @@ class TestController(object):
188 188
         except Exception as e:
189 189
             print('-> err ({})'.format(e.__str__()))
190 190
 
191
-        setup_app()
191
+        setup_app(section_name=self.application_under_test)
192 192
         setup_db()
193 193
 
194 194