mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix mixin test
This commit is contained in:
parent
bc0ee2a235
commit
9f558d0f69
@ -4,7 +4,7 @@ from django.test import TestCase
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url, include
|
||||
|
||||
from plugins.integration import IntegrationPluginBase, SettingsMixin, UrlsMixin, NavigationMixin
|
||||
from plugins.integration import AppMixin, IntegrationPluginBase, SettingsMixin, UrlsMixin, NavigationMixin
|
||||
|
||||
|
||||
class BaseMixinDefinition:
|
||||
@ -85,6 +85,11 @@ class AppMixinTest(BaseMixinDefinition, TestCase):
|
||||
MIXIN_NAME = 'app'
|
||||
MIXIN_ENABLE_CHECK = 'has_app'
|
||||
|
||||
def setUp(self):
|
||||
class TestCls(AppMixin, IntegrationPluginBase):
|
||||
pass
|
||||
self.mixin = TestCls()
|
||||
|
||||
def test_function(self):
|
||||
# test that this plugin is in settings
|
||||
self.assertIn('plugins.samples.integration', settings.INSTALLED_APPS)
|
||||
|
Loading…
Reference in New Issue
Block a user