Update data for unit test fixtures

This commit is contained in:
Oliver 2021-06-22 13:24:03 +10:00
parent eae9ff7d1d
commit 979ef674d6
2 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,9 @@ class ManufacturerTest(InvenTreeAPITestCase):
data = { data = {
'MPN': 'MPN-TEST-123', 'MPN': 'MPN-TEST-123',
} }
response = self.client.patch(url, data, format='json') response = self.client.patch(url, data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data['MPN'], 'MPN-TEST-123') self.assertEqual(response.data['MPN'], 'MPN-TEST-123')

View File

@ -6,7 +6,7 @@
name: 'M2x4 LPHS' name: 'M2x4 LPHS'
description: 'M2x4 low profile head screw' description: 'M2x4 low profile head screw'
category: 8 category: 8
link: www.acme.com/parts/m2x4lphs link: http://www.acme.com/parts/m2x4lphs
tree_id: 0 tree_id: 0
purchaseable: True purchaseable: True
level: 0 level: 0
@ -56,6 +56,7 @@
fields: fields:
name: 'C_22N_0805' name: 'C_22N_0805'
description: '22nF capacitor in 0805 package' description: '22nF capacitor in 0805 package'
purchaseable: true
category: 3 category: 3
tree_id: 0 tree_id: 0
level: 0 level: 0