2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Bug fix: Part thumbnail API list was not working

- Part images could not be selected from grid
This commit is contained in:
Oliver Walters
2020-11-04 15:41:17 +11:00
parent fc99086c8f
commit f560be1a9a
3 changed files with 28 additions and 4 deletions

View File

@ -241,6 +241,17 @@ class PartAPITest(APITestCase):
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_get_thumbs(self):
"""
Return list of part thumbnails
"""
url = reverse('api-part-thumbs')
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
class PartAPIAggregationTest(APITestCase):
"""