mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2998 from matmair/small-python-fixes-plugin
Small code smell fixes for plugin
This commit is contained in:
commit
43669db783
@ -10,7 +10,7 @@ __all__ = [
|
||||
'registry',
|
||||
|
||||
'InvenTreePlugin',
|
||||
IntegrationPluginBase,
|
||||
'IntegrationPluginBase',
|
||||
'MixinNotImplementedError',
|
||||
'MixinImplementationError',
|
||||
]
|
||||
|
@ -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')
|
||||
|
@ -5,5 +5,5 @@ Import helper for events
|
||||
from plugin.base.event.events import trigger_event
|
||||
|
||||
__all__ = [
|
||||
trigger_event,
|
||||
'trigger_event',
|
||||
]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user