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

Commit 3db4ccc

Browse files
committed
fix incorrect usage of assert_called_once()
1 parent 55ef506 commit 3db4ccc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
4040
UNIT_TEST_STANDARD_DEPENDENCIES = [
41-
"mock==5.0.0",
41+
"mock",
4242
"asyncmock",
4343
"pytest",
4444
"pytest-cov",
@@ -52,7 +52,7 @@
5252

5353
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10"]
5454
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
55-
"mock==5.0.0",
55+
"mock",
5656
"pytest",
5757
"google-cloud-testutils",
5858
]

owlbot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,6 @@
353353
s.replace(
354354
"noxfile.py", r'"blacken",', '\g<0>\n "mypy",',
355355
)
356-
s.replace(
357-
"noxfile.py", r'"mock"', '"mock==5.0.0"',
358-
)
359356
s.replace(
360357
"noxfile.py",
361358
r"nox\.options\.error_on_missing_interpreters = True",

tests/unit/pubsub_v1/publisher/test_publisher_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def test_resume_publish(creds):
636636
client._set_sequencer(topic=topic, sequencer=sequencer, ordering_key=ordering_key)
637637

638638
client.resume_publish(topic, ordering_key)
639-
assert sequencer.unpause.called_once()
639+
sequencer.unpause.assert_called_once()
640640

641641

642642
def test_resume_publish_no_sequencer_found(creds):

0 commit comments

Comments
 (0)