Skip to content

Commit 0a8137f

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Don't use Mock.called_once_with that does not exist"
2 parents 20f8646 + 48681af commit 0a8137f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/common/test_commandmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ def test_get_command_names(self):
100100
mock_pkg_resources,
101101
) as iter_entry_points:
102102
mgr = commandmanager.CommandManager('test')
103-
assert iter_entry_points.called_once_with('test')
103+
iter_entry_points.assert_called_once_with('test')
104104
cmds = mgr.get_command_names('test')
105105
self.assertEqual(['one', 'cmd two'], cmds)

0 commit comments

Comments
 (0)