This commit is contained in:
Matthias 2021-09-28 22:37:54 +02:00
parent 1f96885e05
commit ed312b9cf1
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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()