diff --git a/backend/hct_mis_api/apps/targeting/tests/snapshots/snap_test_target_query.py b/backend/hct_mis_api/apps/targeting/tests/snapshots/snap_test_target_query.py index 4cee6054ce..d36b1f33f0 100644 --- a/backend/hct_mis_api/apps/targeting/tests/snapshots/snap_test_target_query.py +++ b/backend/hct_mis_api/apps/targeting/tests/snapshots/snap_test_target_query.py @@ -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 } } ] diff --git a/backend/hct_mis_api/apps/targeting/tests/test_target_query.py b/backend/hct_mis_api/apps/targeting/tests/test_target_query.py index 27f71a684e..dbc596522b 100644 --- a/backend/hct_mis_api/apps/targeting/tests/test_target_query.py +++ b/backend/hct_mis_api/apps/targeting/tests/test_target_query.py @@ -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"} ) @@ -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,