def setUp(self): self._mockdb = helpers.mock_database() self.logger = helpers.get_logger('beachfront.services.users') self.mock_select_user_by_api_key = self.create_mock( 'beachfront.db.users.select_user_by_api_key')
def setUp(self): self._mockdb = helpers.mock_database()
def setUp(self): self._mockdb = helpers.mock_database() self.mock_requests = rm.Mocker() # type: rm.Mocker self.mock_requests.start() self.addCleanup(self.mock_requests.stop)
def setUp(self): self._mockdb = helpers.mock_database() self.mock_delete = self.create_mock('beachfront.db.productlines.delete_productline') self.mock_select = self.create_mock('beachfront.db.productlines.select_productline')