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)
def setup(): options = {"config_file": tests.test_config_file()} conf = config.Config.load_paste_config("reddwarfapp", options, None) db_api.db_reset(conf)
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())
def setup(): options = dict(config_file=tests.test_config_file()) conf = config.Config.load_paste_config("reddwarf", options, None) db_api.db_reset(conf)