mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
renmae var
This commit is contained in:
@ -174,7 +174,7 @@ class APICallMixinTest(BaseMixinDefinition, TestCase):
|
|||||||
|
|
||||||
class WrongCLS(APICallMixin, IntegrationPluginBase):
|
class WrongCLS(APICallMixin, IntegrationPluginBase):
|
||||||
pass
|
pass
|
||||||
self.mixin_nothing = WrongCLS()
|
self.mixin_wrong = WrongCLS()
|
||||||
|
|
||||||
def test_function(self):
|
def test_function(self):
|
||||||
# api_url
|
# api_url
|
||||||
@ -192,7 +192,7 @@ class APICallMixinTest(BaseMixinDefinition, TestCase):
|
|||||||
|
|
||||||
# wrongly defined plugins should not load
|
# wrongly defined plugins should not load
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
self.mixin_nothing.has_api_call()
|
self.mixin_wrong.has_api_call()
|
||||||
|
|
||||||
|
|
||||||
class IntegrationPluginBaseTests(TestCase):
|
class IntegrationPluginBaseTests(TestCase):
|
||||||
|
Reference in New Issue
Block a user