mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
More fixes
- Add a set of template tags for rendering status codes - Improve build API filtering - Remove some outdated files - Fix unit testing
This commit is contained in:
@ -82,7 +82,8 @@ class PartAPITest(APITestCase):
|
||||
|
||||
def test_get_all_parts(self):
|
||||
url = reverse('api-part-list')
|
||||
response = self.client.get(url, format='json')
|
||||
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), 8)
|
||||
|
||||
|
Reference in New Issue
Block a user