mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
style fix
This commit is contained in:
parent
897be4cc1a
commit
a7cba2320b
@ -3,7 +3,7 @@
|
|||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|
||||||
import plugins.plugin
|
import plugins.plugin
|
||||||
from plugins.plugins import load_action_plugins, load_barcode_plugins, load_integration_plugins
|
from plugins.plugins import load_integration_plugins # , load_action_plugins, load_barcode_plugins
|
||||||
|
|
||||||
|
|
||||||
class InvenTreePluginTests(TestCase):
|
class InvenTreePluginTests(TestCase):
|
||||||
@ -34,9 +34,9 @@ class PluginIntegrationTests(TestCase):
|
|||||||
def test_plugin_loading(self):
|
def test_plugin_loading(self):
|
||||||
"""check if plugins load as expected"""
|
"""check if plugins load as expected"""
|
||||||
plugin_names_integration = [a().plugin_name() for a in load_integration_plugins()]
|
plugin_names_integration = [a().plugin_name() for a in load_integration_plugins()]
|
||||||
#plugin_names_barcode = [a().plugin_name() for a in load_barcode_plugins()] # TODO refactor barcode plugin to support standard loading
|
# plugin_names_barcode = [a().plugin_name() for a in load_barcode_plugins()] # TODO refactor barcode plugin to support standard loading
|
||||||
#plugin_names_action = [a().plugin_name() for a in load_action_plugins()] # TODO refactor action plugin to support standard loading
|
# plugin_names_action = [a().plugin_name() for a in load_action_plugins()] # TODO refactor action plugin to support standard loading
|
||||||
|
|
||||||
self.assertEqual(plugin_names_integration, ['NoIntegrationPlugin', 'WrongIntegrationPlugin', 'SampleIntegrationPlugin'])
|
self.assertEqual(plugin_names_integration, ['NoIntegrationPlugin', 'WrongIntegrationPlugin', 'SampleIntegrationPlugin'])
|
||||||
#self.assertEqual(plugin_names_action, '')
|
# self.assertEqual(plugin_names_action, '')
|
||||||
#self.assertEqual(plugin_names_barcode, '')
|
# self.assertEqual(plugin_names_barcode, '')
|
||||||
|
Loading…
Reference in New Issue
Block a user