From 75a8b88a92dc7e11e41dba367c7f06673f2d91e4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Nov 2021 20:14:17 +0100 Subject: [PATCH] now it should test --- InvenTree/plugin/test_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/test_api.py b/InvenTree/plugin/test_api.py index 9bd35f9555..da17ee62b0 100644 --- a/InvenTree/plugin/test_api.py +++ b/InvenTree/plugin/test_api.py @@ -78,18 +78,21 @@ class PluginDetailAPITest(InvenTreeAPITestCase): fixtures = fixtures[0:1] # deactivate plugin self.post(url, { - 'action': 'plugin_deactivate', + 'action': 'plugin_deactivate', + 'index': 0, '_selected_action': [f.pk for f in fixtures], }, expected_code=200) # deactivate plugin - deactivate again -> nothing will hapen but the nothing 'changed' function is triggered self.post(url, { 'action': 'plugin_deactivate', + 'index': 0, '_selected_action': [f.pk for f in fixtures], }, expected_code=200) # activate plugin self.post(url, { 'action': 'plugin_activate', + 'index': 0, '_selected_action': [f.pk for f in fixtures], }, expected_code=200)