Skip to content

Commit

Permalink
fix incorrect usage of assert_called_once()
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Nov 28, 2023
1 parent 55ef506 commit 3db4ccc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Expand Up @@ -38,7 +38,7 @@

UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock==5.0.0",
"mock",
"asyncmock",
"pytest",
"pytest-cov",
Expand All @@ -52,7 +52,7 @@

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10"]
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
"mock==5.0.0",
"mock",
"pytest",
"google-cloud-testutils",
]
Expand Down
3 changes: 0 additions & 3 deletions owlbot.py
Expand Up @@ -353,9 +353,6 @@
s.replace(
"noxfile.py", r'"blacken",', '\g<0>\n "mypy",',
)
s.replace(
"noxfile.py", r'"mock"', '"mock==5.0.0"',
)
s.replace(
"noxfile.py",
r"nox\.options\.error_on_missing_interpreters = True",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/pubsub_v1/publisher/test_publisher_client.py
Expand Up @@ -636,7 +636,7 @@ def test_resume_publish(creds):
client._set_sequencer(topic=topic, sequencer=sequencer, ordering_key=ordering_key)

client.resume_publish(topic, ordering_key)
assert sequencer.unpause.called_once()
sequencer.unpause.assert_called_once()


def test_resume_publish_no_sequencer_found(creds):
Expand Down

0 comments on commit 3db4ccc

Please sign in to comment.