remove invalid tests

This commit is contained in:
Matthias 2021-11-20 19:27:53 +01:00
parent 7a65520252
commit e7babfbb7c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -7,7 +7,7 @@ import plugin.plugin
import plugin.integration import plugin.integration
from plugin.samples.integration.sample import SampleIntegrationPlugin from plugin.samples.integration.sample import SampleIntegrationPlugin
from plugin.samples.integration.another_sample import WrongIntegrationPlugin, NoIntegrationPlugin 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 import plugin.templatetags.plugin_extras as plugin_tags
from plugin import plugin_reg from plugin import plugin_reg
@ -39,14 +39,14 @@ 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_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.assertListEqual(sorted(list(set(plugin_names_integration))), sorted(['NoIntegrationPlugin', 'WrongIntegrationPlugin', 'SampleIntegrationPlugin']))
# self.assertEqual(plugin_names_action, '') # self.assertEqual(plugin_names_action, '')
# self.assertEqual(plugin_names_barcode, '') # self.assertEqual(plugin_names_barcode, '')
# TODO remove test once loading is moved
class PluginTagTests(TestCase): class PluginTagTests(TestCase):
""" Tests for the plugin extras """ """ Tests for the plugin extras """