Skip to content

Commit 48860fe

Browse files
committed
remove requirement for nonmixed allocations
1 parent 2deefec commit 48860fe

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test_allocation.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,6 @@ def test_can_allocate_to_both_preferring_stock():
9292
assert allocations['sku4'] == stock
9393

9494

95-
def test_mixed_allocations_are_avoided_if_possible():
96-
order = {'sku1': 10, 'sku2': 10}
97-
shipment = {'sku1': 1000, 'sku2': 1000}
98-
stock = {'sku1': 1000}
99-
100-
allocations = allocate(order, stock, shipments=[shipment])
101-
102-
assert allocations['sku1'] == shipment
103-
assert allocations['sku2'] == shipment
104-
105-
10695
def test_allocated_to_first_suitable_shipment_in_list():
10796
order = {'sku1': 10, 'sku2': 10}
10897
shipment1 = {'sku1': 1000, 'sku2': 1000}

0 commit comments

Comments
 (0)