def setUp(self): CeleryAppTestCase.setUp(self) self.app.app.registry.db_slave = self.db_master self.url = '/v1/geosubmit' self.metric = 'geosubmit' self.metric_url = 'request.v1.geosubmit'
def setUp(self): CeleryAppTestCase.setUp(self) session = self.db_slave_session session.add(ApiKey(valid_key='test')) session.commit()
def setUp(self): CeleryAppTestCase.setUp(self) self.app.app.registry.db_slave = self.db_master
def setUp(self): CeleryAppTestCase.setUp(self) self.heka_client = get_client('ichnaea') self.heka_client.stream.msgs.clear()