mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fix 2
This commit is contained in:
parent
7040eda11e
commit
7e9f22cbde
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user