diff --git a/InvenTree/plugin/__init__.py b/InvenTree/plugin/__init__.py index ae38ae6e5b..2f08d31eed 100644 --- a/InvenTree/plugin/__init__.py +++ b/InvenTree/plugin/__init__.py @@ -10,7 +10,7 @@ __all__ = [ 'registry', 'InvenTreePlugin', - IntegrationPluginBase, + 'IntegrationPluginBase', 'MixinNotImplementedError', 'MixinImplementationError', ] diff --git a/InvenTree/plugin/base/label/mixins.py b/InvenTree/plugin/base/label/mixins.py index b6c4d53f46..4e06f9e15a 100644 --- a/InvenTree/plugin/base/label/mixins.py +++ b/InvenTree/plugin/base/label/mixins.py @@ -36,4 +36,4 @@ class LabelPrintingMixin: """ # Unimplemented (to be implemented by the particular plugin class) - MixinNotImplementedError('This Plugin must implement a `print_label` method') + raise MixinNotImplementedError('This Plugin must implement a `print_label` method') diff --git a/InvenTree/plugin/events.py b/InvenTree/plugin/events.py index 193a1805fe..bea1fafb25 100644 --- a/InvenTree/plugin/events.py +++ b/InvenTree/plugin/events.py @@ -5,5 +5,5 @@ Import helper for events from plugin.base.event.events import trigger_event __all__ = [ - trigger_event, + 'trigger_event', ] diff --git a/InvenTree/plugin/test_plugin.py b/InvenTree/plugin/test_plugin.py index 30054d569b..5de813150f 100644 --- a/InvenTree/plugin/test_plugin.py +++ b/InvenTree/plugin/test_plugin.py @@ -87,7 +87,7 @@ class InvenTreePluginTests(TestCase): AUTHOR = 'AA BB' DESCRIPTION = 'A description' VERSION = '1.2.3a' - WEBSITE = 'http://aa.bb/cc' + WEBSITE = 'https://aa.bb/cc' LICENSE = 'MIT' self.plugin_name = NameInvenTreePlugin() @@ -147,7 +147,7 @@ class InvenTreePluginTests(TestCase): # website self.assertEqual(self.plugin.website, None) self.assertEqual(self.plugin_simple.website, None) - self.assertEqual(self.plugin_name.website, 'http://aa.bb/cc') + self.assertEqual(self.plugin_name.website, 'https://aa.bb/cc') # license self.assertEqual(self.plugin.license, None)