mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor
This commit is contained in:
parent
fb94a0d335
commit
64e177a100
@ -52,8 +52,8 @@ class PluginTagTests(TestCase):
|
|||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.sample = SampleIntegrationPlugin()
|
self.sample = SampleIntegrationPlugin()
|
||||||
self.no = NoIntegrationPlugin()
|
self.plugin_no = NoIntegrationPlugin()
|
||||||
self.wrong = WrongIntegrationPlugin()
|
self.plugin_wrong = WrongIntegrationPlugin()
|
||||||
|
|
||||||
def test_tag_plugin_list(self):
|
def test_tag_plugin_list(self):
|
||||||
"""test that all plugins are listed"""
|
"""test that all plugins are listed"""
|
||||||
@ -69,6 +69,6 @@ class PluginTagTests(TestCase):
|
|||||||
# mixin enabled
|
# mixin enabled
|
||||||
self.assertEqual(plugin_tags.mixin_enabled(self.sample, key), True)
|
self.assertEqual(plugin_tags.mixin_enabled(self.sample, key), True)
|
||||||
# mixin not enabled
|
# mixin not enabled
|
||||||
self.assertEqual(plugin_tags.mixin_enabled(self.wrong, key), False)
|
self.assertEqual(plugin_tags.mixin_enabled(self.plugin_wrong, key), False)
|
||||||
# mxixn not existing
|
# mxixn not existing
|
||||||
self.assertEqual(plugin_tags.mixin_enabled(self.no, key), False)
|
self.assertEqual(plugin_tags.mixin_enabled(self.plugin_no, key), False)
|
||||||
|
Loading…
Reference in New Issue
Block a user