Fix unit test

This commit is contained in:
Oliver Walters 2026-06-24 13:00:52 +00:00
parent 7e1ff70109
commit bb2e095344
1 changed files with 4 additions and 1 deletions

View File

@ -2409,7 +2409,10 @@ class StocktakeTest(StockAPITestCase):
{'items': [{'pk': item_a.pk, 'quantity': 1}], 'location': structural.pk}, {'items': [{'pk': item_a.pk, 'quantity': 1}], 'location': structural.pk},
expected_code=400, 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): class StockItemDeletionTest(StockAPITestCase):