make general mixin tests multi mixin enabled

This commit is contained in:
Matthias 2022-01-09 22:16:19 +01:00
parent ad9a9da656
commit c699ced34a
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -15,9 +15,9 @@ from plugin.urls import PLUGIN_BASE
class BaseMixinDefinition:
def test_mixin_name(self):
# mixin name
self.assertEqual(self.mixin.registered_mixins[0]['key'], self.MIXIN_NAME)
self.assertIn(self.MIXIN_NAME, [item['key'] for item in self.mixin.registered_mixins])
# human name
self.assertEqual(self.mixin.registered_mixins[0]['human_name'], self.MIXIN_HUMAN_NAME)
self.assertIn(self.MIXIN_HUMAN_NAME, [item['human_name'] for item in self.mixin.registered_mixins])
class SettingsMixinTest(BaseMixinDefinition, TestCase):