mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 12:22:11 +00:00
Tweak query count values for plugin install (#10134)
- A bit more conservative for unit tests
This commit is contained in:
@@ -85,6 +85,7 @@ class PluginDetailAPITest(PluginMixin, InvenTreeAPITestCase):
|
|||||||
{'confirm': True, 'packagename': self.PKG_NAME},
|
{'confirm': True, 'packagename': self.PKG_NAME},
|
||||||
expected_code=201,
|
expected_code=201,
|
||||||
max_query_time=30,
|
max_query_time=30,
|
||||||
|
max_query_count=400,
|
||||||
).data
|
).data
|
||||||
|
|
||||||
self.assertEqual(data['success'], 'Installed plugin successfully')
|
self.assertEqual(data['success'], 'Installed plugin successfully')
|
||||||
@@ -639,7 +640,7 @@ class PluginFullAPITest(PluginMixin, InvenTreeAPITestCase):
|
|||||||
self.assertEqual(data['active'], False)
|
self.assertEqual(data['active'], False)
|
||||||
response = self.patch(
|
response = self.patch(
|
||||||
reverse('api-plugin-uninstall', kwargs={'plugin': slug}),
|
reverse('api-plugin-uninstall', kwargs={'plugin': slug}),
|
||||||
max_query_count=305,
|
max_query_count=350,
|
||||||
)
|
)
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user