def setUp(self):
     super(ControllerTestBase, self).setUp()
     conf, reddwarf_app = config.Config.load_paste_app(
         'reddwarfapp',
         {"config_file": tests.test_config_file()},
         None)
     self.app = unit.TestApp(reddwarf_app)
Exemple #2
0
def setup():
    options = {"config_file": tests.test_config_file()}
    conf = config.Config.load_paste_config("reddwarfapp", options, None)
    db_api.db_reset(conf)
Exemple #3
0
def setup():
    options = {"config_file": tests.test_config_file()}
    conf = config.Config.load_paste_config("reddwarfapp", options, None)

    db_api.db_reset(conf)
Exemple #4
0
 def setUp(self):
     super(ControllerTestBase, self).setUp()
     conf, reddwarf_app = config.Config.load_paste_app(
         'reddwarfapp', {"config_file": tests.test_config_file()}, None)
     self.app = unit.TestApp(reddwarf_app)
Exemple #5
0
def run_reddwarf_manage(command):
    reddwarf_manage = tests.reddwarf_bin_path('reddwarf-manage')
    config_file = tests.test_config_file()
    return functional.execute("%(reddwarf_manage)s %(command)s "
                              "--config-file=%(config_file)s" % locals())
Exemple #6
0
def setup():
    options = dict(config_file=tests.test_config_file())
    conf = config.Config.load_paste_config("reddwarf", options, None)

    db_api.db_reset(conf)