Fix tests on python 3.7

This commit is contained in:
Gabriel Augendre 2020-05-08 18:13:45 +02:00
parent d296467050
commit 84f30e4bf9
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -28,7 +28,7 @@ class UtilsTestCase(unittest.TestCase):
runner.invoke(cli, ["--help"])
add_command.assert_has_calls(calls, any_order=True)
self.assertEqual(
set(map(lambda item: item.args[0].name, add_command.call_args_list)),
set(map(lambda call_: call_[0][0].name, add_command.call_args_list)),
set(expected_names),
)