mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
test fixes
This commit is contained in:
parent
11cc0c7ced
commit
e7963f8a85
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user