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