mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add tests for plugin installs form url with pkgn
This commit is contained in:
parent
1cb51d1782
commit
640242eca3
@ -45,6 +45,14 @@ class PluginDetailAPITest(InvenTreeAPITestCase):
|
||||
}, expected_code=201).data
|
||||
self.assertEqual(data['success'], True)
|
||||
|
||||
# valid - github url and packagename
|
||||
data = self.post(url, {
|
||||
'confirm': True,
|
||||
'url': self.PKG_URL,
|
||||
'packagename': 'minimal',
|
||||
}, expected_code=201).data
|
||||
self.assertEqual(data['success'], True)
|
||||
|
||||
# invalid tries
|
||||
# no input
|
||||
self.post(url, {}, expected_code=400)
|
||||
|
Loading…
Reference in New Issue
Block a user