Fix unit test
This commit is contained in:
parent
7e1ff70109
commit
bb2e095344
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue