Skip to content

Commit

Permalink
Merge pull request #97 from openimis/develop
Browse files Browse the repository at this point in the history
fix test params
  • Loading branch information
delcroip authored Sep 19, 2024
2 parents 4a01f66 + 0a89a91 commit b0fae47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contract/tests/services/services_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ def test_get_rule_details(self):
class_name2 = "ContributionPlan"
result = get_rule_details(class_name=class_name)
result2 = get_rule_details(class_name=class_name2)
result_param = [param["name"] for param in result["parameters"]]
result2_param = [param["name"] for param in result2["parameters"]]
result_param = [param['name'] for param in result[class_name]]
result2_param = [param['name'] for param in result2[class_name2]]
self.assertEqual(
(class_name, class_name2, ["income"], ["rate", "includeFamily"]),
(result["class"], result2["class"], result_param, result2_param)
(list(result.keys())[0], list(result2.keys())[0], result_param, result2_param)
)

def test_get_rule_details_not_existing(self):
Expand Down

0 comments on commit b0fae47

Please sign in to comment.