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 2deefec commit 48860feCopy full SHA for 48860fe
test_allocation.py
@@ -92,17 +92,6 @@ def test_can_allocate_to_both_preferring_stock():
92
assert allocations['sku4'] == stock
93
94
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
106
def test_allocated_to_first_suitable_shipment_in_list():
107
order = {'sku1': 10, 'sku2': 10}
108
shipment1 = {'sku1': 1000, 'sku2': 1000}
0 commit comments