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): ...@@ -127,8 +127,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
# ...so no buildable # ...so no buildable
self.assertFalse(simulation_movement.isBuildable()) self.assertFalse(simulation_movement.isBuildable())
# stopped... # delivered...
self.assertEqual('stopped', simulation_movement.getSimulationState()) self.assertEqual('delivered', simulation_movement.getSimulationState())
# ...so invoice rule applied # ...so invoice rule applied
self.assertEqual(1, self.assertEqual(1,
len(simulation_movement.contentValues(portal_type="Applied Rule"))) len(simulation_movement.contentValues(portal_type="Applied Rule")))
...@@ -191,6 +191,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -191,6 +191,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
CleanTic CleanTic
CallVifibExpandDeliveryLineAlarm CallVifibExpandDeliveryLineAlarm
CleanTic CleanTic
CallDeliverSubscriptionSalePackingListAlarm
CleanTic
CheckSimulationMovement CheckSimulationMovement
SlapLogout 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