This commit is contained in:
Matthias 2021-11-21 19:18:37 +01:00
parent 6533457400
commit 6b7ea10ba2
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -80,17 +80,17 @@ class PluginDetailAPITest(InvenTreeAPITestCase):
# deactivate plugin
self.post(url, {
'action': 'plugin_deactivate',
'_selected_action': [f.pk for f in fixtures],
'_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',
'_selected_action': [f.pk for f in fixtures],
'_selected_action': [f.pk for f in fixtures],
}, expected_code=200)
# activate plugin
self.post(url, {
'action': 'plugin_activate',
'_selected_action': [f.pk for f in fixtures],
'_selected_action': [f.pk for f in fixtures],
}, expected_code=200)