mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for unit test
This commit is contained in:
parent
b157690ae0
commit
9f9629edb3
@ -243,10 +243,12 @@ class PartAPITest(InvenTreeAPITestCase):
|
||||
for n in [1, 5, 10]:
|
||||
response = self.get(reverse('api-part-list'), {'limit': n})
|
||||
|
||||
self.assertIn('count', response)
|
||||
self.assertIn('results', response)
|
||||
data = response.data
|
||||
|
||||
self.assertIn('count', data)
|
||||
self.assertIn('results', data)
|
||||
|
||||
self.assertEqual(len(response['results']), n)
|
||||
self.assertEqual(len(data['results']), n)
|
||||
|
||||
|
||||
class PartAPIAggregationTest(InvenTreeAPITestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user