Skip to content

Commit 7ec200a

Browse files
committed
called_once_with => assert_called_once_with
1 parent 23f8ff8 commit 7ec200a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paths_cli/tests/compiling/test_root_compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def test_register_plugins_unit(foo_compiler_plugin, foo_baz_builder_plugin):
247247
with patch(BASE + "_register_builder_plugin", Mock()) as builder, \
248248
patch(BASE + "_register_compiler_plugin", Mock()) as compiler:
249249
register_plugins([foo_baz_builder_plugin, foo_compiler_plugin])
250-
assert builder.called_once_with(foo_baz_builder_plugin)
251-
assert compiler.called_once_with(foo_compiler_plugin)
250+
builder.assert_called_once_with(foo_baz_builder_plugin)
251+
compiler.assert_called_once_with(foo_compiler_plugin)
252252

253253

254254
def test_register_plugins_integration(foo_compiler_plugin,

paths_cli/tests/wizard/test_plugin_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_call(self):
3838
with mock.patch(patch_loc, mock_load):
3939
result = loader(wiz)
4040

41-
assert mock_load.called_once_with(wiz, "foos", "foo")
41+
mock_load.assert_called_once_with(wiz, "foos", "foo")
4242
assert result == "some_object"
4343

4444

0 commit comments

Comments
 (0)