We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07dd382 commit 18aa3b4Copy full SHA for 18aa3b4
test_allocate.py
@@ -35,4 +35,4 @@ def test_returns_allocated_batch_ref():
35
shipment_batch = Batch("shipment-batch-ref", "HIGHBROW-POSTER", 100, eta=tomorrow)
36
line = OrderLine("oref", "HIGHBROW-POSTER", 10)
37
allocation = allocate(line, [in_stock_batch, shipment_batch])
38
- assert allocation == "in-stock-batch"
+ assert allocation == in_stock_batch.reference
0 commit comments