Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johniak committed Oct 31, 2024
1 parent a853222 commit d384c6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/apps/grievance/test_reassign_roles_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def setUpTestData(cls) -> None:
cls.household.save()
cls.primary_collector_individual.household = cls.household
cls.primary_collector_individual.save()

cls.household.refresh_from_db()
cls.primary_collector_individual.refresh_from_db()

Expand Down Expand Up @@ -151,7 +150,7 @@ def test_reassign_roles_on_marking_as_duplicate_individual_service_reassign_with
)
self.assertEqual(
str(error.exception.messages[0]),
"Individual (IND-0) was not marked as duplicated",
f"Individual ({self.primary_collector_individual.unicef_id}) was not marked as duplicated",
)

def test_reassign_roles_on_marking_as_duplicate_individual_service_reassign_new_individual_is_duplicate(
Expand Down Expand Up @@ -181,5 +180,5 @@ def test_reassign_roles_on_marking_as_duplicate_individual_service_reassign_new_
)
self.assertEqual(
str(error.exception.messages[0]),
"Individual(IND-2) which get role PRIMARY was marked as duplicated",
f"Individual({self.no_role_individual.unicef_id}) which get role PRIMARY was marked as duplicated",
)

0 comments on commit d384c6e

Please sign in to comment.