Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 3d6c19c

Browse files
committed
fix tests
1 parent 7299164 commit 3d6c19c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/samples/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,9 +1591,9 @@ def __init__(self):
15911591
super().__init__("commit_stats_sample")
15921592

15931593
def info(self, msg, *args, **kwargs):
1594-
if kwargs["extra"] and "commit_stats" in kwargs["extra"]:
1594+
if "extra" in kwargs and kwargs["extra"] and "commit_stats" in kwargs["extra"]:
15951595
self.last_commit_stats = kwargs["extra"]["commit_stats"]
1596-
super().info(msg)
1596+
super().info(msg, *args, **kwargs)
15971597

15981598
spanner_client = spanner.Client()
15991599
instance = spanner_client.instance(instance_id)

samples/samples/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def test_write_with_dml_transaction(capsys, instance_id, sample_database):
683683
def test_update_data_with_partitioned_dml(capsys, instance_id, sample_database):
684684
snippets.update_data_with_partitioned_dml(instance_id, sample_database.database_id)
685685
out, _ = capsys.readouterr()
686-
assert "3 record(s) updated" in out
686+
assert "3 records updated" in out
687687

688688

689689
@pytest.mark.dependency(

0 commit comments

Comments
 (0)