We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff1476 commit 0edabc1Copy full SHA for 0edabc1
packages/google-cloud-spanner/tests/unit/test_batch.py
@@ -288,7 +288,11 @@ def test_commit_ok(self, mock_region):
288
),
289
)
290
291
- def test_aborted_exception_on_commit_with_retries(self):
+ @mock.patch(
292
+ "google.cloud.spanner_v1._opentelemetry_tracing._get_cloud_region",
293
+ return_value="global",
294
+ )
295
+ def test_aborted_exception_on_commit_with_retries(self, mock_region):
296
# Test case to verify that an Aborted exception is raised when
297
# batch.commit() is called and the transaction is aborted internally.
298
# The exception has request_id attribute added.
0 commit comments