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

Unit test fixes

This commit is contained in:
Oliver Walters
2022-04-02 11:12:54 +11:00
parent 484a0693d7
commit 4593b0f412
3 changed files with 15 additions and 14 deletions

View File

@ -250,7 +250,7 @@ class PartAPITest(InvenTreeAPITestCase):
data = {'cascade': True}
response = self.client.get(url, data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 13)
self.assertEqual(len(response.data), Part.objects.count())
def test_get_parts_by_cat(self):
url = reverse('api-part-list')