Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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())
Ejemplo n.º 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)