Skip to content

Commit a37079f

Browse files
Update unit test
1 parent 7532b6e commit a37079f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test_order.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,18 @@ def test_so_shipment(self):
677677
# Try to complete this order
678678
# Ship remaining shipments first
679679
for shp in so.getShipments():
680+
681+
allocations = shp.getAllocations()
682+
680683
# Delete shipment if it has no allocations
681-
if len(shp.allocations) == 0:
684+
if len(allocations) == 0:
682685
shp.delete()
683686
continue
687+
684688
# If the shipment has no date, try to mark it shipped
685689
if shp.shipment_date is None:
686690
shp.ship()
691+
687692
so.complete()
688693
self.assertEqual(so.status, 20)
689694
self.assertEqual(so.status_text, 'Shipped')

0 commit comments

Comments
 (0)