mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-17 18:26:32 +00:00
Force builtin plugins to be active (#4276)
* Force builtin plugins to be active - Not setting the "active" flag can cause ambiguous errors - e.g. some settings don't work if the plugin is inactive - By design, builtin plugins are always "active" anyway - This PR just forces the active field to True * Fix unit tests
This commit is contained in:
@@ -193,8 +193,3 @@ class PluginDetailAPITest(PluginMixin, InvenTreeAPITestCase):
|
||||
with self.assertRaises(NotFound) as exc:
|
||||
check_plugin(plugin_slug=None, plugin_pk='123')
|
||||
self.assertEqual(str(exc.exception.detail), "Plugin '123' not installed")
|
||||
|
||||
# Not active
|
||||
with self.assertRaises(NotFound) as exc:
|
||||
check_plugin(plugin_slug='inventreebarcode', plugin_pk=None)
|
||||
self.assertEqual(str(exc.exception.detail), "Plugin 'inventreebarcode' is not active")
|
||||
|
Reference in New Issue
Block a user