mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
check confirm is True
This commit is contained in:
parent
6b1c436135
commit
ba6a7c0541
@ -50,6 +50,11 @@ class PluginDetailAPITest(InvenTreeAPITestCase):
|
|||||||
self.assertEqual(data['packagename'][0].title().upper(), self.MSG_NO_PKG.upper())
|
self.assertEqual(data['packagename'][0].title().upper(), self.MSG_NO_PKG.upper())
|
||||||
|
|
||||||
# not confirmed
|
# not confirmed
|
||||||
data = self.post(url, {
|
self.post(url, {
|
||||||
'packagename': self.PKG_NAME
|
'packagename': self.PKG_NAME
|
||||||
}, expected_code=400).data
|
}, expected_code=400).data
|
||||||
|
data = self.post(url, {
|
||||||
|
'packagename': self.PKG_NAME,
|
||||||
|
'confirm': False,
|
||||||
|
}, expected_code=400).data
|
||||||
|
self.assertEqual(data['confirm'][0].title().upper(), 'Installation not confirmed'.upper())
|
||||||
|
Loading…
Reference in New Issue
Block a user