py23 compat: list is needed not a view
in py3 keys() returns a view but in this cases we need a list
This commit is contained in:
1 parent
f72f948744
commit
ff0b94c78d
4 files changed
+4
-4
No files matched your search
@@ -174,7 +174,7 @@ class PluginTestCase(unittest.TestCase):
|
||||
def test_sorted_hooks(self):
|
||||
hooks = self.plugin_manager.get_hooks("some.ordered.callback")
|
||||
self.assertEqual(3, len(hooks))
|
||||
self.assertListEqual(["one_ordered_hook_plugin", "another_ordered_hook_plugin", "hook_plugin"], hooks.keys())
|
||||
self.assertListEqual(["one_ordered_hook_plugin", "another_ordered_hook_plugin", "hook_plugin"], list(hooks.keys()))
|
||||
|
||||
def test_get_implementations(self):
|
||||
implementations = self.plugin_manager.get_implementations(octoprint.plugin.StartupPlugin)
|
||||
|
||||
Reference in new issue
Block a user