mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Unit test fixes
This commit is contained in:
@ -332,7 +332,7 @@ class StockTest(TestCase):
|
||||
w1 = StockItem.objects.get(pk=100)
|
||||
w2 = StockItem.objects.get(pk=101)
|
||||
|
||||
self.assertFalse(w2.scheduled_for_depletion)
|
||||
self.assertFalse(w2.scheduled_for_deletion)
|
||||
|
||||
# Take 25 units from w1 (there are only 10 in stock)
|
||||
w1.take_stock(30, None, notes='Took 30')
|
||||
@ -346,7 +346,7 @@ class StockTest(TestCase):
|
||||
|
||||
# w2 should now be marked for future deletion
|
||||
w2 = StockItem.objects.get(pk=101)
|
||||
self.assertTrue(w2.scheduled_for_depletion)
|
||||
self.assertTrue(w2.scheduled_for_deletion)
|
||||
|
||||
from stock.tasks import delete_old_stock_items
|
||||
|
||||
|
Reference in New Issue
Block a user