Skip to content

Commit

Permalink
updated Google DV360 Hook to fix SDF issue (#13703)
Browse files Browse the repository at this point in the history
Co-authored-by: Sara Hamilton <[email protected]>
  • Loading branch information
Sara Hamilton and Sara Hamilton committed Jan 17, 2021
1 parent 2f79fb9 commit 7ec858c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_sdf_download_operation(self, operation_name: str):
result = (
self.get_conn_to_display_video() # pylint: disable=no-member
.sdfdownloadtasks()
.operation()
.operations()
.get(name=operation_name)
.execute(num_retries=self.num_retries)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def test_get_sdf_download_tasks_called_with_params(self, get_conn_to_display_vid
# fmt: off
get_conn_to_display_video.return_value. \
sdfdownloadtasks.return_value. \
operation.return_value. \
operations.return_value. \
get.assert_called_once_with(name=operation_name)
# fmt: on

Expand All @@ -328,7 +328,7 @@ def test_get_sdf_download_tasks_called_once(self, get_conn_to_display_video):
# fmt: off
get_conn_to_display_video.return_value. \
sdfdownloadtasks.return_value. \
operation.return_value. \
operations.return_value. \
get.assert_called_once()
# fmt: on

Expand All @@ -340,7 +340,7 @@ def get_sdf_download_tasks_return_equal_values(self, get_conn_to_display_video):
operation_name = "operation"
response = "reposonse"

get_conn_to_display_video.return_value.sdfdownloadtasks.return_value.operation.return_value.get = (
get_conn_to_display_video.return_value.sdfdownloadtasks.return_value.operations.return_value.get = (
response
)

Expand Down

0 comments on commit 7ec858c

Please sign in to comment.