From e7963f8a851d998791d932b569bf84dcf72fdc8b Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 17 Sep 2021 21:06:07 +1000 Subject: [PATCH] test fixes --- InvenTree/part/test_api.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/test_api.py b/InvenTree/part/test_api.py index 8150461b38..660b573e33 100644 --- a/InvenTree/part/test_api.py +++ b/InvenTree/part/test_api.py @@ -595,14 +595,20 @@ class PartAPITest(InvenTreeAPITestCase): url = reverse('api-part-list') + name = "Kaltgerätestecker" + description = "Gerät" + data = { - "name": "Kaltgerätestecker", - "description": "Gerät", + "name": name, + "description": description, "category": 2 } response = self.post(url, data, expected_code=201) + self.assertEqual(response.data['name'], name) + self.assertEqual(response.data['description'], description) + class PartDetailTests(InvenTreeAPITestCase): """