def test_get_service_with_id_and_not_found(self, mock_exists_in_db): mock_exists_in_db.return_value = False services = SQLStore.get_service(self.test_model.id) self.assertEqual(services, [])
def test_get_service_with_id_as_none(self): services = SQLStore.get_service(service_id=None) self.assertNotEqual(services, [])
def test_get_service_with_id(self): services = SQLStore.get_service(service_id=self.test_model.id) self.assertGreater(len(services), 0) self.assertIsInstance(services[0], ServiceType)