Skip to content

Commit

Permalink
[IMP] Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sa3m committed Oct 5, 2023
1 parent a13f928 commit 899f8c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mis_builder/tests/test_mis_report_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,3 +592,8 @@ def test_unprivileged(self):
self.env, "mis_you", groups="base.group_user,account.group_account_user"
)
self.report_instance.with_user(test_user).compute()

def test_details_before_kpi(self):
self.report_instance.details_before_kpi = True
matrix_dict = self.report_instance.compute()
self.assertEqual(matrix_dict["body"][0]["parent_row_id"], "k1")

0 comments on commit 899f8c9

Please sign in to comment.