We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 354187b commit 8d737c5Copy full SHA for 8d737c5
keras_remote/backend/test_execution.py
@@ -7,6 +7,7 @@
7
from unittest.mock import MagicMock
8
9
from absl.testing import absltest
10
+from google.api_core import exceptions as google_exceptions
11
12
from keras_remote.backend.execution import (
13
JobContext,
@@ -175,6 +176,10 @@ def test_cleanup_on_wait_failure(self):
175
176
with (
177
mock.patch("keras_remote.backend.execution._build_container"),
178
mock.patch("keras_remote.backend.execution._upload_artifacts"),
179
+ mock.patch(
180
+ "keras_remote.backend.execution._download_result",
181
+ side_effect=google_exceptions.NotFound("no result uploaded"),
182
+ ),
183
):
184
ctx = self._make_ctx()
185
backend = MagicMock()
0 commit comments