test plugin save action

This commit is contained in:
Matthias 2021-11-21 20:22:44 +01:00
parent 75a8b88a92
commit bafbebb634
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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)