Commit 54b09916 authored by Romain Courteaud's avatar Romain Courteaud

Fix test.

Max day is 28.
parent 18be8b89
...@@ -798,7 +798,7 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin): ...@@ -798,7 +798,7 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self.assertEqual(open_sale_order_line_template.getPrice(), self.assertEqual(open_sale_order_line_template.getPrice(),
line.getPrice()) line.getPrice())
self.assertEqual(DateTime().earliestTime(), line.getStartDate()) self.assertEqual(DateTime().earliestTime(), line.getStartDate())
self.assertEqual(DateTime().day(), self.assertEqual(min(DateTime().day(), 28),
subscription.getPeriodicityMonthDay()) subscription.getPeriodicityMonthDay())
start_date = addToDate(line.getStartDate(), to_add={'month': 1}) start_date = addToDate(line.getStartDate(), to_add={'month': 1})
start_date = addToDate(start_date, to_add={'second': -1}) start_date = addToDate(start_date, to_add={'second': -1})
......
241 242
\ No newline at end of file \ 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