Skip to content

Commit

Permalink
test codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelTorrecillas committed Jul 11, 2024
1 parent 740c2a7 commit 2f61f87
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions analytic_partner/tests/test_analytic_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,8 @@ def setUpClass(cls):
)

def test_flow(self):
def test_flow_2(self,other_partner_id):
self.assertEqual(other_partner_id,
self.account_move.partner_id.commercial_partner_id,
"""Invoice partner has not been propagated
to the analytic line""",
)

self.account_move.action_post()
for analytic_line in self.account_move.mapped("line_ids.analytic_line_ids"):
self.test_flow_2(
analytic_line.other_partner_id)


analytic_lines = self.account_move.mapped("line_ids.analytic_line_ids")
for analytic_line in analytic_lines:
self.assertEqual(analytic_line.other_partner_id,self.account_move.partner_id.commercial_partner_id,"""Invoice partner has not been propagated
to the analytic line""")

0 comments on commit 2f61f87

Please sign in to comment.