1 parent e2e7bc5 commit 886d9b8Copy full SHA for 886d9b8
1 file changed
test_allocate.py
@@ -34,4 +34,4 @@ def test_returns_allocated_batch_ref():
34
shipment_batch = Batch("shipment-batch-ref", "HIGHBROW-POSTER", 100, eta=tomorrow)
35
line = OrderLine("oref", "HIGHBROW-POSTER", 10)
36
allocation = allocate(line, [in_stock_batch, shipment_batch])
37
- assert allocation == "in-stock-batch"
+ assert allocation == in_stock_batch.reference
0 commit comments