2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Refactor the POReceive API endpoint

- Lessons learned from the build allocate
- Use serializer.save() directly
This commit is contained in:
Oliver
2021-10-05 11:20:43 +11:00
parent 7ecd4c70e7
commit 29588ff2c5
3 changed files with 42 additions and 72 deletions

View File

@ -172,7 +172,7 @@ class TestBuildAPI(APITestCase):
# Filter by 'part' status
response = self.client.get(url, {'part': 25}, format='json')
self.assertEqual(len(response.data), 2)
self.assertEqual(len(response.data), 1)
# Filter by an invalid part
response = self.client.get(url, {'part': 99999}, format='json')