Add tests for plugin installs form url with pkgn

This commit is contained in:
Matthias 2022-05-15 01:32:52 +02:00
parent 1cb51d1782
commit 640242eca3
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

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