Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
odooNextev committed Aug 27, 2024
1 parent 5025714 commit 402696c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions l10n_it_riba/tests/riba_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def setUp(self):
"company_id": self.company2.id,
}
)
self.riba_config_sbf_maturazione = self.create_config("maturation")
self.riba_config_sbf_immediato = self.create_config("immediate")
self.riba_config_sbf_maturation = self.create_config("maturation")
self.riba_config_sbf_immediate = self.create_config("immediate")
self.riba_config_incasso = self.create_config_incasso()
self.company_bank.codice_sia = "AA555"

Expand Down
10 changes: 5 additions & 5 deletions l10n_it_riba/tests/test_riba.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def riba_sbf_common(self, configuration_id):
return invoice, riba_list

def test_riba_sbf_maturation_flow(self):
invoice, riba_list = self.riba_sbf_common(self.riba_config_sbf_maturazione.id)
invoice, riba_list = self.riba_sbf_common(self.riba_config_sbf_maturation.id)

bank_credit_line = False
for credit_line in riba_list.credit_move_id.line_ids:
Expand Down Expand Up @@ -216,7 +216,7 @@ def test_riba_sbf_maturation_flow(self):
self.assertEqual(riba_list.line_ids[0].state, "credited")

def test_riba_sbf_immediate_flow(self):
invoice, riba_list = self.riba_sbf_common(self.riba_config_sbf_immediato.id)
invoice, riba_list = self.riba_sbf_common(self.riba_config_sbf_immediate.id)

# past due wizard
past_due_wizard = (
Expand Down Expand Up @@ -340,7 +340,7 @@ def test_past_due_riba(self):
riba_move_line_id = move_line.id
# issue wizard
wizard_riba_issue = self.env["riba.issue"].create(
{"configuration_id": self.riba_config_sbf_maturazione.id}
{"configuration_id": self.riba_config_sbf_maturation.id}
)
action = wizard_riba_issue.with_context(
active_ids=[riba_move_line_id]
Expand Down Expand Up @@ -483,7 +483,7 @@ def test_riba_fatturapa(self):
lambda x: x.account_id == self.account_rec1_id
)
wizard_riba_issue = self.env["riba.issue"].create(
{"configuration_id": self.riba_config_sbf_maturazione.id}
{"configuration_id": self.riba_config_sbf_maturation.id}
)
action = wizard_riba_issue.with_context(
active_ids=[riba_move_line_id.id]
Expand Down Expand Up @@ -588,7 +588,7 @@ def test_riba_fatturapa_group(self):
lambda x: x.account_id == self.account_rec1_id
)
wizard_riba_issue = self.env["riba.issue"].create(
{"configuration_id": self.riba_config_sbf_maturazione.id}
{"configuration_id": self.riba_config_sbf_maturation.id}
)
action = wizard_riba_issue.with_context(
active_ids=[riba_move_line_id.id, riba_move_line1_id.id]
Expand Down

0 comments on commit 402696c

Please sign in to comment.