diff --git a/src/fides/services/privacy_request/privacy_request_service.py b/src/fides/services/privacy_request/privacy_request_service.py index 8cb8d94ecd..d5f159681b 100644 --- a/src/fides/services/privacy_request/privacy_request_service.py +++ b/src/fides/services/privacy_request/privacy_request_service.py @@ -55,16 +55,6 @@ send_verification_code_to_user, ) -OPTIONAL_FIELDS = [ - "id", - "external_id", - "started_processing_at", - "finished_processing_at", - "consent_preferences", - "property_id", - "source", -] - class PrivacyRequestError(Exception): """Base exception for privacy request operations.""" @@ -151,6 +141,16 @@ def create_privacy_request( authenticated, ) + OPTIONAL_FIELDS = [ + "id", + "external_id", + "started_processing_at", + "finished_processing_at", + "consent_preferences", + "property_id", + "source", + ] + for field in OPTIONAL_FIELDS: attr = getattr(privacy_request_data, field) if attr is not None: diff --git a/tests/ops/service/connectors/test_base_email_connector.py b/tests/ops/service/connectors/test_base_email_connector.py index ddfb439d99..3496694066 100644 --- a/tests/ops/service/connectors/test_base_email_connector.py +++ b/tests/ops/service/connectors/test_base_email_connector.py @@ -1,7 +1,7 @@ import pytest from fides.api.schemas.messaging.messaging import MessagingServiceType -from fides.api.service.connectors.base_email_connector import ( +from fides.api.service.messaging.message_dispatch_service import ( get_email_messaging_config_service_type, )