now it should test

This commit is contained in:
Matthias committed 2021-11-21 20:14:17 +01:00
1 parent 211a8e27e6
commit 75a8b88a92
1 file changed
+4 -1
+4 -1
View File
@@ -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)