PEP fix 2

This commit is contained in:
Matthias 2021-09-28 01:19:51 +02:00
parent 7040eda11e
commit 7e9f22cbde
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -69,13 +69,13 @@ class NavigationMixinTest(BaseMixinDefinition, TestCase):
def setUp(self):
class NavigationCls(NavigationMixin, IntegrationPlugin):
NAVIGATION = [
{'name': 'aa', 'link': 'plugin:test:test_view'},
{'name': 'aa', 'link': 'plugin:test:test_view'},
]
self.mixin = NavigationCls()
def test_function(self):
# check right configuration
self.assertEqual(self.mixin.navigation, [{'name': 'aa', 'link': 'plugin:test:test_view'},])
self.assertEqual(self.mixin.navigation, [{'name': 'aa', 'link': 'plugin:test:test_view'}, ])
# check wrong links fails
with self.assertRaises(NotImplementedError):
class NavigationCls(NavigationMixin, IntegrationPlugin):