Skip to content

Commit

Permalink
Increase timeout for plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jun 12, 2024
1 parent 7bc2249 commit b46e18c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/InvenTree/plugin/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ def test_plugin_install(self):
'packagename': 'invalid_package_name-asdads-asfd-asdf-asdf-asdf',
},
expected_code=400,
max_query_time=20,
max_query_time=30,
)

# valid - Pypi
data = self.post(
url,
{'confirm': True, 'packagename': self.PKG_NAME},
expected_code=201,
max_query_time=20,
max_query_time=30,
).data

self.assertEqual(data['success'], 'Installed plugin successfully')
Expand All @@ -53,7 +53,7 @@ def test_plugin_install(self):
url,
{'confirm': True, 'url': self.PKG_URL},
expected_code=201,
max_query_time=20,
max_query_time=30,
).data

self.assertEqual(data['success'], 'Installed plugin successfully')
Expand All @@ -63,7 +63,7 @@ def test_plugin_install(self):
url,
{'confirm': True, 'url': self.PKG_URL, 'packagename': self.PKG_NAME},
expected_code=201,
max_query_time=20,
max_query_time=30,
).data
self.assertEqual(data['success'], 'Installed plugin successfully')

Expand Down

0 comments on commit b46e18c

Please sign in to comment.