From bb2e095344969ee661d5b2083f86ff092a17d53e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 24 Jun 2026 13:00:52 +0000 Subject: [PATCH] Fix unit test --- src/backend/InvenTree/stock/test_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/InvenTree/stock/test_api.py b/src/backend/InvenTree/stock/test_api.py index 4299cfa83c..e034c8dd2d 100644 --- a/src/backend/InvenTree/stock/test_api.py +++ b/src/backend/InvenTree/stock/test_api.py @@ -2409,7 +2409,10 @@ class StocktakeTest(StockAPITestCase): {'items': [{'pk': item_a.pk, 'quantity': 1}], 'location': structural.pk}, expected_code=400, ) - self.assertIn('does not exist', str(response.data['location'])) + self.assertIn( + 'Structural locations cannot be assigned stock items', + str(response.data['location']), + ) class StockItemDeletionTest(StockAPITestCase):