mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 21:38:48 +00:00
remove unneeded args
This commit is contained in:
parent
d9fe7ac272
commit
23608e6933
@ -14,7 +14,7 @@ class ActionMixinTests(TestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
class SimplePlugin(ActionMixin, InvenTreePlugin):
|
class SimplePlugin(ActionMixin, InvenTreePlugin):
|
||||||
pass
|
pass
|
||||||
self.plugin = SimplePlugin('user')
|
self.plugin = SimplePlugin()
|
||||||
|
|
||||||
class TestActionPlugin(ActionMixin, InvenTreePlugin):
|
class TestActionPlugin(ActionMixin, InvenTreePlugin):
|
||||||
"""a action plugin"""
|
"""a action plugin"""
|
||||||
@ -29,12 +29,12 @@ class ActionMixinTests(TestCase):
|
|||||||
def get_info(self):
|
def get_info(self):
|
||||||
return ActionMixinTests.ACTION_RETURN + 'info'
|
return ActionMixinTests.ACTION_RETURN + 'info'
|
||||||
|
|
||||||
self.action_plugin = TestActionPlugin('user')
|
self.action_plugin = TestActionPlugin()
|
||||||
|
|
||||||
class NameActionPlugin(ActionMixin, InvenTreePlugin):
|
class NameActionPlugin(ActionMixin, InvenTreePlugin):
|
||||||
NAME = 'Aplugin'
|
NAME = 'Aplugin'
|
||||||
|
|
||||||
self.action_name = NameActionPlugin('user')
|
self.action_name = NameActionPlugin()
|
||||||
|
|
||||||
def test_action_name(self):
|
def test_action_name(self):
|
||||||
"""check the name definition possibilities"""
|
"""check the name definition possibilities"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user