2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 03:51:34 +00:00

fix API assertations

This commit is contained in:
Matthias
2022-03-12 03:52:50 +01:00
parent 4eaa655a7c
commit a68ee5ce0b
2 changed files with 3 additions and 3 deletions

View File

@@ -242,14 +242,14 @@ class TestInvenTreeBarcode(APITestCase):
reverse('api-barcode-link'), format='json',
data={
'barcode': barcode_data,
'stockitem': 522
'stockitem': 521
}
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertIn('error', response.data)
# test with already existing stock
test_assert_error('{"stockitem": 522}')
test_assert_error('{"stockitem": 521}')
# test with already existing stock location
test_assert_error('{"stocklocation": 7}')