We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2893ade commit 8f6be72Copy full SHA for 8f6be72
tests/unit/test_database.py
@@ -1931,12 +1931,13 @@ def test_context_mgr_w_commit_stats_error(self):
1931
return_commit_stats=True,
1932
request_options=RequestOptions(),
1933
)
1934
- api.commit.assert_called_once_with(
+ self.assertEqual(api.commit.call_count, 2)
1935
+ api.commit.assert_any_call(
1936
request=request,
1937
metadata=[
1938
("google-cloud-resource-prefix", database.name),
1939
("x-goog-spanner-route-to-leader", "true"),
- ],
1940
+ ]
1941
1942
1943
database.logger.info.assert_not_called()
0 commit comments