Refactor the POReceive API endpoint

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

No files matched your search

+1 -1
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')