mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remove invalid tests
This commit is contained in:
parent
7a65520252
commit
e7babfbb7c
@ -7,7 +7,7 @@ import plugin.plugin
|
||||
import plugin.integration
|
||||
from plugin.samples.integration.sample import SampleIntegrationPlugin
|
||||
from plugin.samples.integration.another_sample import WrongIntegrationPlugin, NoIntegrationPlugin
|
||||
from plugin.plugins import load_integration_plugins # , load_action_plugins, load_barcode_plugins
|
||||
# from plugin.plugins import load_action_plugins, load_barcode_plugins
|
||||
import plugin.templatetags.plugin_extras as plugin_tags
|
||||
from plugin import plugin_reg
|
||||
|
||||
@ -39,14 +39,14 @@ class PluginIntegrationTests(TestCase):
|
||||
|
||||
def test_plugin_loading(self):
|
||||
"""check if plugins load as expected"""
|
||||
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_action = [a().plugin_name() for a in load_action_plugins()] # TODO refactor action plugin to support standard loading
|
||||
|
||||
self.assertListEqual(sorted(list(set(plugin_names_integration))), sorted(['NoIntegrationPlugin', 'WrongIntegrationPlugin', 'SampleIntegrationPlugin']))
|
||||
# self.assertEqual(plugin_names_action, '')
|
||||
# self.assertEqual(plugin_names_barcode, '')
|
||||
|
||||
# TODO remove test once loading is moved
|
||||
|
||||
|
||||
class PluginTagTests(TestCase):
|
||||
""" Tests for the plugin extras """
|
||||
|
Loading…
Reference in New Issue
Block a user