def get_app(self): if not hasattr(self, 'db'): self.db = get_db_conn_synchronous() app = make_app(self.db, test_conf) return app
def setUp(self): super(SeahorseTestCase, self).setUp() self.db = get_db_conn_synchronous() self.app = self.get_app() create_users()
def __init__(self): self.db_conn = get_db_conn_synchronous() self.users = UsersService(self.db_conn)