Skip to content

Commit 8d0fd93

Browse files
teste: error date
1 parent 4697db7 commit 8d0fd93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

l10n_br_account_payment_order/tests/test_base_class.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _send_new_cnab_code(
102102
) as f:
103103
f.change_type = code_to_send
104104
if code_to_send == "change_date_maturity":
105-
new_date = date.today() + timedelta(days=30)
105+
new_date = date.today() + timedelta(days=31)
106106
payment_cheque = self.env.ref(
107107
"l10n_br_account_payment_order." "payment_mode_cheque"
108108
)

l10n_br_account_payment_order/tests/test_payment_order_change.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def setUpClass(cls):
6161
def test_change_date_maturity_multiple(self):
6262
"""Test Creation of a Payment Order an change MULTIPLE due date"""
6363
date_maturity = self.financial_move_line_ids.mapped("date_maturity")
64-
new_date = date.today() + timedelta(days=30)
64+
new_date = date.today() + timedelta(days=31)
6565
self._send_and_check_new_cnab_code(
6666
self.invoice_auto,
6767
self.financial_move_line_ids,
@@ -77,7 +77,7 @@ def test_change_date_maturity_multiple(self):
7777
def test_change_date_maturity_one(self):
7878
"""Test Creation of a Payment Order an change ONE due date"""
7979
date_maturity = self.financial_move_line_0.mapped("date_maturity")
80-
new_date = date.today() + timedelta(days=30)
80+
new_date = date.today() + timedelta(days=31)
8181
self._send_and_check_new_cnab_code(
8282
self.invoice_auto,
8383
self.financial_move_line_0,

0 commit comments

Comments
 (0)