We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ad3236 commit bebd0fdCopy full SHA for bebd0fd
1 file changed
test_batches.py
@@ -41,3 +41,9 @@ def test_deallocate():
41
batch.allocate(line)
42
batch.deallocate(line)
43
assert batch.available_quantity == 20
44
+
45
46
+def test_can_only_deallocate_allocated_lines():
47
+ batch, unallocated_line = make_batch_and_line("DECORATIVE-TRINKET", 20, 2)
48
+ batch.deallocate(unallocated_line)
49
+ assert batch.available_quantity == 20
0 commit comments