Skip to content

Commit

Permalink
fix: fix busted test method
Browse files Browse the repository at this point in the history
It's `assert_called_once()`, not `called_once()`.

Also, never use that; always call `assert_called_once_with()`
  • Loading branch information
nisimond committed Feb 28, 2024
1 parent 186b95c commit f864a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_brokers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_wait_for_events_no_future_job(broker):

mock_sh.wait.return_value = True
broker.wait_for_event()
mock_sh.clear.called_once()
mock_sh.clear.assert_called_once_with()


@pytest.mark.parametrize('delta,timeout', [
Expand Down

0 comments on commit f864a1d

Please sign in to comment.