Esempio n. 1
0
    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')
Esempio n. 2
0
 def setUp(self):
     self._mockdb = helpers.mock_database()
Esempio n. 3
0
    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)
Esempio n. 4
0
    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')