def setUp(self): app = wp_frontend.main( {}, sql_init_function=tests.init_db, **tests.settings) self.testapp = webtest.TestApp(app) self.testapp.put('/login', tests.valid_credentials, status=302)
def make_testapp(): app = wp_frontend.main({}, sql_init_function=tests.init_and_recreate_db, **tests.settings) return TestApp(app)
def setUp(self): app = wp_frontend.main({}, sql_init_function=tests.init_db, **tests.settings) self.testapp = TestApp(app)