Commit 4b31dced authored by Łukasz Nowak's avatar Łukasz Nowak

Follow desing change.

parent 07af6bae
...@@ -52,7 +52,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -52,7 +52,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
None, hosting_subscription.getPeriodicityWeekFrequency()) None, hosting_subscription.getPeriodicityWeekFrequency())
# check start date and stop date of the subscription item, # check start date and stop date of the subscription item,
# currently there are 12 months # currently there are 2 months
now = DateTime() now = DateTime()
start_date = \ start_date = \
getClosestDate(target_date=now, precision='day', before=1) getClosestDate(target_date=now, precision='day', before=1)
...@@ -69,7 +69,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -69,7 +69,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self.assertEquals( self.assertEquals(
0.0, open_order_line.getStartDate().second()) 0.0, open_order_line.getStartDate().second())
stop_date = addToDate( stop_date = addToDate(
getClosestDate(target_date=now, precision='month', before=1), year=1) getClosestDate(target_date=now, precision='month', before=1), month=2)
self.assertEquals( self.assertEquals(
stop_date.year(), open_order_line.getStopDate().year()) stop_date.year(), open_order_line.getStopDate().year())
self.assertEquals( self.assertEquals(
...@@ -94,8 +94,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin): ...@@ -94,8 +94,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
parent_uid=applied_rule.getUid(), parent_uid=applied_rule.getUid(),
sort_on=(('movement.start_date', 'desc'),) sort_on=(('movement.start_date', 'desc'),)
) )
# Check that simulation is created by the periodicity for one year # Check that simulation is created by the periodicity for two months
self.assertEquals(12, self.assertEquals(2,
len(simulation_movement_list)) len(simulation_movement_list))
# Check the list of expected simulation # Check the list of expected simulation
......
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