We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d817ecd commit bd0e75eCopy full SHA for bd0e75e
1 file changed
test_batches.py
@@ -34,3 +34,10 @@ def test_cannot_allocate_if_skus_do_not_match():
34
batch = Batch("batch-001", "UNCOMFORTABLE-CHAIR", 100, eta=None)
35
different_sku_line = OrderLine("order-123", "EXPENSIVE-TOASTER", 10)
36
assert batch.can_allocate(different_sku_line) is False
37
+
38
39
+def test_deallocate():
40
+ batch, line = make_batch_and_line("EXPENSIVE-FOOTSTOOL", 20, 2)
41
+ batch.allocate(line)
42
+ batch.deallocate(line)
43
+ assert batch.available_quantity == 20
0 commit comments