-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
from fides.api.common_exceptions import ( | ||
AwaitingAsyncTaskCallback, | ||
FidesopsException, | ||
SkippingConsentPropagation, | ||
) | ||
from fides.api.graph.execution import ExecutionNode | ||
|
@@ -548,13 +549,15 @@ def test_request_with_invalid_output_template( | |
execution_node = ExecutionNode(request_task) | ||
connector: SaaSConnector = get_connector(saas_example_connection_config) | ||
|
||
assert connector.retrieve_data( | ||
execution_node, | ||
Policy(), | ||
PrivacyRequest(id="123"), | ||
request_task, | ||
{"email": ["[email protected]"]}, | ||
) == [{"id": "123", "email": "[email protected]"}] | ||
with pytest.raises(FidesopsException) as exc: | ||
assert connector.retrieve_data( | ||
execution_node, | ||
Policy(), | ||
PrivacyRequest(id="123"), | ||
request_task, | ||
{"email": ["[email protected]"]}, | ||
) == [{"id": "123", "email": "[email protected]"}] | ||
assert "Failed to parse value as JSON" in str(exc) | ||
|
||
|
||
@pytest.mark.integration_saas | ||
|