Example #1
0
 def setUp(self):
     AppTestCase.setUp(self)
     session = self.db_slave_session
     session.add(ApiKey(valid_key='test'))
     session.add(ApiKey(valid_key='test.test'))
     session.commit()
Example #2
0
 def setUp(self):
     AppTestCase.setUp(self)
     request = DummyRequest()
     self.config = setUp(request=request)
Example #3
0
 def tearDown(self):
     tearDown()
     AppTestCase.tearDown(self)
Example #4
0
 def setUp(self):
     AppTestCase.setUp(self)
     self.url = '/v1/geolocate'
     self.metric = 'geolocate'
     self.metric_url = 'request.v1.geolocate'