Skip to content

Commit 8d737c5

Browse files
fix test
1 parent 354187b commit 8d737c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

keras_remote/backend/test_execution.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from unittest.mock import MagicMock
88

99
from absl.testing import absltest
10+
from google.api_core import exceptions as google_exceptions
1011

1112
from keras_remote.backend.execution import (
1213
JobContext,
@@ -175,6 +176,10 @@ def test_cleanup_on_wait_failure(self):
175176
with (
176177
mock.patch("keras_remote.backend.execution._build_container"),
177178
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+
),
178183
):
179184
ctx = self._make_ctx()
180185
backend = MagicMock()

0 commit comments

Comments
 (0)