mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 16:57:30 +00:00
Refactor the POReceive API endpoint
- Lessons learned from the build allocate - Use serializer.save() directly
This commit is contained in:
1 parent
7ecd4c70e7
commit
29588ff2c5
3 files changed
+42
-72
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user