test fixes

This commit is contained in:
Oliver 2021-09-17 21:06:07 +10:00
parent 11cc0c7ced
commit e7963f8a85

View File

@ -595,14 +595,20 @@ class PartAPITest(InvenTreeAPITestCase):
url = reverse('api-part-list') url = reverse('api-part-list')
name = "Kaltgerätestecker"
description = "Gerät"
data = { data = {
"name": "Kaltgerätestecker", "name": name,
"description": "Gerät", "description": description,
"category": 2 "category": 2
} }
response = self.post(url, data, expected_code=201) response = self.post(url, data, expected_code=201)
self.assertEqual(response.data['name'], name)
self.assertEqual(response.data['description'], description)
class PartDetailTests(InvenTreeAPITestCase): class PartDetailTests(InvenTreeAPITestCase):
""" """