Skip to content

Commit

Permalink
Fix new lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Sep 18, 2023
1 parent 8c79426 commit abb133f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mkdocs/tests/plugin_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,15 @@ def test_set_plugin_on_collection(self):
collection = plugins.PluginCollection()
plugin = DummyPlugin()
collection['foo'] = plugin
self.assertEqual([(k, v) for k, v in collection.items()], [('foo', plugin)])
self.assertEqual(list(collection.items()), [('foo', plugin)])

def test_set_multiple_plugins_on_collection(self):
collection = plugins.PluginCollection()
plugin1 = DummyPlugin()
collection['foo'] = plugin1
plugin2 = DummyPlugin()
collection['bar'] = plugin2
self.assertEqual(
[(k, v) for k, v in collection.items()], [('foo', plugin1), ('bar', plugin2)]
)
self.assertEqual(list(collection.items()), [('foo', plugin1), ('bar', plugin2)])

def test_run_event_on_collection(self):
collection = plugins.PluginCollection()
Expand Down

0 comments on commit abb133f

Please sign in to comment.