Skip to content

Commit

Permalink
called_once_with should be assert_called_once_with (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
radez authored Jul 27, 2023
1 parent 89a071a commit dc24849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/utils/test_dump_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_dump_artifacts_inventory_object(mocker):
kwargs = {'private_data_dir': '/tmp', 'inventory': inv}
dump_artifacts(kwargs)

assert mock_dump_artifact.called_once_with(inv_string, '/tmp/inventory', 'hosts.json')
mock_dump_artifact.assert_called_once_with(inv_string, '/tmp/inventory', 'hosts.json')


def test_dump_artifacts_inventory_string_path(mocker):
Expand Down

0 comments on commit dc24849

Please sign in to comment.