Skip to content

Commit

Permalink
fix: overwritten test variable (#3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Jun 5, 2024
1 parent ee32a43 commit 7c4ad63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/benefit/applications/tests/test_ahjo_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,10 @@ def test_get_applications_for_open_case(
multiple_handling_applications,
):
now = timezone.now()
applications_for_open_case = (
wanted_applications_for_open_case = (
multiple_decided_applications_for_open_case + multiple_handling_applications
)
for application in applications_for_open_case:
for application in wanted_applications_for_open_case:
status = AhjoStatus.objects.create(
application=application,
status=AhjoStatusEnum.SUBMITTED_BUT_NOT_SENT_TO_AHJO,
Expand Down Expand Up @@ -752,7 +752,7 @@ def test_get_applications_for_open_case(
)
# only handled_applications should be returned as their last AhjoStatus is SUBMITTED_BUT_NOT_SENT_TO_AHJO
# and their application status is HANDLING
assert applications_for_open_case.count() == len(applications_for_open_case)
assert applications_for_open_case.count() == len(wanted_applications_for_open_case)


@pytest.mark.django_db
Expand Down

0 comments on commit 7c4ad63

Please sign in to comment.