mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fix
This commit is contained in:
parent
1f96885e05
commit
ed312b9cf1
@ -28,6 +28,7 @@ class SettingsMixinTest(BaseMixinDefinition, TestCase):
|
|||||||
class SettingsCls(SettingsMixin, IntegrationPlugin):
|
class SettingsCls(SettingsMixin, IntegrationPlugin):
|
||||||
SETTINGS = self.TEST_SETTINGS
|
SETTINGS = self.TEST_SETTINGS
|
||||||
self.mixin = SettingsCls()
|
self.mixin = SettingsCls()
|
||||||
|
|
||||||
class NoSettingsCls(SettingsMixin, IntegrationPlugin):
|
class NoSettingsCls(SettingsMixin, IntegrationPlugin):
|
||||||
pass
|
pass
|
||||||
self.mixin_nothing = NoSettingsCls()
|
self.mixin_nothing = NoSettingsCls()
|
||||||
@ -45,7 +46,6 @@ class SettingsMixinTest(BaseMixinDefinition, TestCase):
|
|||||||
self.assertIsNone(self.mixin_nothing.settingspatterns)
|
self.assertIsNone(self.mixin_nothing.settingspatterns)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class UrlsMixinTest(BaseMixinDefinition, TestCase):
|
class UrlsMixinTest(BaseMixinDefinition, TestCase):
|
||||||
MIXIN_HUMAN_NAME = 'URLs'
|
MIXIN_HUMAN_NAME = 'URLs'
|
||||||
MIXIN_NAME = 'urls'
|
MIXIN_NAME = 'urls'
|
||||||
@ -57,6 +57,7 @@ class UrlsMixinTest(BaseMixinDefinition, TestCase):
|
|||||||
return 'ccc'
|
return 'ccc'
|
||||||
URLS = [url('testpath', test, name='test'), ]
|
URLS = [url('testpath', test, name='test'), ]
|
||||||
self.mixin = UrlsCls()
|
self.mixin = UrlsCls()
|
||||||
|
|
||||||
class NoUrlsCls(UrlsMixin, IntegrationPlugin):
|
class NoUrlsCls(UrlsMixin, IntegrationPlugin):
|
||||||
pass
|
pass
|
||||||
self.mixin_nothing = NoUrlsCls()
|
self.mixin_nothing = NoUrlsCls()
|
||||||
|
Loading…
Reference in New Issue
Block a user