diff --git a/InvenTree/barcodes/tests.py b/InvenTree/barcodes/tests.py index fd46438c9b..852f429141 100644 --- a/InvenTree/barcodes/tests.py +++ b/InvenTree/barcodes/tests.py @@ -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}') diff --git a/InvenTree/stock/fixtures/stock.yaml b/InvenTree/stock/fixtures/stock.yaml index a16e83db41..f1926be478 100644 --- a/InvenTree/stock/fixtures/stock.yaml +++ b/InvenTree/stock/fixtures/stock.yaml @@ -235,6 +235,7 @@ lft: 0 rght: 0 status: 60 + uid: 1be0dfa925825c5c6c79301449e50c2d - model: stock.stockitem pk: 522 @@ -249,4 +250,3 @@ rght: 0 expiry_date: "1990-10-10" status: 70 - uid: 1be0dfa925825c5c6c79301449e50c2d