mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
now it should test
This commit is contained in:
parent
211a8e27e6
commit
75a8b88a92
@ -78,18 +78,21 @@ class PluginDetailAPITest(InvenTreeAPITestCase):
|
|||||||
fixtures = fixtures[0:1]
|
fixtures = fixtures[0:1]
|
||||||
# deactivate plugin
|
# deactivate plugin
|
||||||
self.post(url, {
|
self.post(url, {
|
||||||
'action': 'plugin_deactivate',
|
'action': 'plugin_deactivate',
|
||||||
|
'index': 0,
|
||||||
'_selected_action': [f.pk for f in fixtures],
|
'_selected_action': [f.pk for f in fixtures],
|
||||||
}, expected_code=200)
|
}, expected_code=200)
|
||||||
|
|
||||||
# deactivate plugin - deactivate again -> nothing will hapen but the nothing 'changed' function is triggered
|
# deactivate plugin - deactivate again -> nothing will hapen but the nothing 'changed' function is triggered
|
||||||
self.post(url, {
|
self.post(url, {
|
||||||
'action': 'plugin_deactivate',
|
'action': 'plugin_deactivate',
|
||||||
|
'index': 0,
|
||||||
'_selected_action': [f.pk for f in fixtures],
|
'_selected_action': [f.pk for f in fixtures],
|
||||||
}, expected_code=200)
|
}, expected_code=200)
|
||||||
|
|
||||||
# activate plugin
|
# activate plugin
|
||||||
self.post(url, {
|
self.post(url, {
|
||||||
'action': 'plugin_activate',
|
'action': 'plugin_activate',
|
||||||
|
'index': 0,
|
||||||
'_selected_action': [f.pk for f in fixtures],
|
'_selected_action': [f.pk for f in fixtures],
|
||||||
}, expected_code=200)
|
}, expected_code=200)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user