Commit d562afbf authored by Łukasz Nowak's avatar Łukasz Nowak

Minimise randomness.

The DeliverSubscriptionSalePackingListAlarm is globally delivering all
subscription packing lists. So previously the test was not reaching the point
(because of indexation and random activity execution).

Force alarm call and update assertion.
parent c392cdb3
......@@ -127,8 +127,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
# ...so no buildable
self.assertFalse(simulation_movement.isBuildable())
# stopped...
self.assertEqual('stopped', simulation_movement.getSimulationState())
# delivered...
self.assertEqual('delivered', simulation_movement.getSimulationState())
# ...so invoice rule applied
self.assertEqual(1,
len(simulation_movement.contentValues(portal_type="Applied Rule")))
......@@ -191,6 +191,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
CleanTic
CallVifibExpandDeliveryLineAlarm
CleanTic
CallDeliverSubscriptionSalePackingListAlarm
CleanTic
CheckSimulationMovement
SlapLogout
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment