Various tweaks

- Improve builtin plugin descriptions
- Spelling fixes
This commit is contained in:
Oliver Walters 2022-11-02 00:28:57 +11:00
parent c91deac1bf
commit 552902354f
5 changed files with 6 additions and 3 deletions

View File

@ -1332,7 +1332,7 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'PLUGIN_ON_STARTUP': { 'PLUGIN_ON_STARTUP': {
'name': _('Check plugins on startup'), 'name': _('Check plugins on startup'),
'description': _('Check that all plugins are installed on startup - enable in container enviroments'), 'description': _('Check that all plugins are installed on startup - enable in container environments'),
'default': False, 'default': False,
'validator': bool, 'validator': bool,
'requires_restart': True, 'requires_restart': True,

View File

@ -65,7 +65,8 @@ class InvenTreeInternalBarcodePlugin(InvenTreeBarcodePlugin):
"""Builtin BarcodePlugin for matching and generating internal barcodes.""" """Builtin BarcodePlugin for matching and generating internal barcodes."""
NAME = "InvenTreeInternalBarcode" NAME = "InvenTreeInternalBarcode"
TITLE = "Inventree Barcodes" TITLE = _("Inventree Barcodes")
DESCRIPTION = _("Provides native support for barcodes")
VERSION = "2.0" VERSION = "2.0"
AUTHOR = _("InvenTree contributors") AUTHOR = _("InvenTree contributors")

View File

@ -27,8 +27,10 @@ class CoreNotificationsPlugin(SettingsMixin, InvenTreePlugin):
"""Core notification methods for InvenTree.""" """Core notification methods for InvenTree."""
NAME = "CoreNotificationsPlugin" NAME = "CoreNotificationsPlugin"
TITLE = _("InvenTree Notifications")
AUTHOR = _('InvenTree contributors') AUTHOR = _('InvenTree contributors')
DESCRIPTION = _('Integrated outgoing notificaton methods') DESCRIPTION = _('Integrated outgoing notificaton methods')
VERSION = "0.1"
SETTINGS = { SETTINGS = {
'ENABLE_NOTIFICATION_EMAILS': { 'ENABLE_NOTIFICATION_EMAILS': {

View File

@ -1,7 +1,7 @@
"""Unit tests for action plugins.""" """Unit tests for action plugins."""
from InvenTree.helpers import InvenTreeTestCase from InvenTree.helpers import InvenTreeTestCase
from plugin.builtin.action.simpleactionplugin import SimpleActionPlugin from plugin.samples.integration.simpleactionplugin import SimpleActionPlugin
class SimpleActionPluginTests(InvenTreeTestCase): class SimpleActionPluginTests(InvenTreeTestCase):