From bafbebb63431ba62430216e49eba38d05d34e481 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Nov 2021 20:22:44 +0100 Subject: [PATCH] test plugin save action --- InvenTree/plugin/test_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/plugin/test_api.py b/InvenTree/plugin/test_api.py index da17ee62b0..13ac6b3ac0 100644 --- a/InvenTree/plugin/test_api.py +++ b/InvenTree/plugin/test_api.py @@ -96,3 +96,8 @@ class PluginDetailAPITest(InvenTreeAPITestCase): 'index': 0, '_selected_action': [f.pk for f in fixtures], }, expected_code=200) + + # save to deactivate plugin + self.post(reverse('admin:plugin_pluginconfig_change', {'pk': fixtures[0].pk}), { + '_save': 'Save', + }, expected_code=200)