Commit 246e3724 authored by Romain Courteaud's avatar Romain Courteaud

Fix test.

Maximum subscription date is closed on the 28.
parent 54b09916
......@@ -802,6 +802,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
subscription.getPeriodicityMonthDay())
start_date = addToDate(line.getStartDate(), to_add={'month': 1})
start_date = addToDate(start_date, to_add={'second': -1})
while start_date.day() >= 28:
start_date = addToDate(start_date, to_add={'day': -1})
self.assertEqual(start_date, line.getStopDate())
def test_usualLifetime_HostingSubscription(self):
......
242
\ No newline at end of file
243
\ No newline at end of file
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