Skip to content

Commit

Permalink
upd test to fix random fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujawa committed Aug 23, 2024
1 parent 374d330 commit cd171a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@
{
'node': {
'createdBy': {
'firstName': 'Second',
'firstName': 'Test',
'lastName': 'User'
},
'name': 'target_population_with_pdu_filter',
'status': 'LOCKED',
'name': 'target_population_size_2',
'status': 'OPEN',
'totalHouseholdsCount': 1,
'totalIndividualsCount': 3
'totalIndividualsCount': 2
}
},
{
'node': {
'createdBy': {
'firstName': 'Test',
'firstName': 'Third',
'lastName': 'User'
},
'name': 'target_population_size_2',
'status': 'OPEN',
'name': 'target_population_with_pdu_filter',
'status': 'LOCKED',
'totalHouseholdsCount': 1,
'totalIndividualsCount': 2
'totalIndividualsCount': 3
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def setUpTestData(cls) -> None:
cls.user = UserFactory(partner=cls.partner, first_name="Test", last_name="User")
user_first = UserFactory(partner=cls.partner, first_name="First", last_name="User")
user_second = UserFactory(partner=cls.partner, first_name="Second", last_name="User")
user_third = UserFactory(partner=cls.partner, first_name="Third", last_name="User")
targeting_criteria = cls.get_targeting_criteria_for_rule(
{"field_name": "size", "arguments": [2], "comparison_method": "EQUALS"}
)
Expand Down Expand Up @@ -207,7 +208,7 @@ def setUpTestData(cls) -> None:
rule_filter.save()
cls.target_population_with_pdu_filter = TargetPopulation(
name="target_population_with_pdu_filter",
created_by=user_second,
created_by=user_third,
targeting_criteria=targeting_criteria,
status=TargetPopulation.STATUS_LOCKED,
business_area=cls.business_area,
Expand Down

0 comments on commit cd171a1

Please sign in to comment.