Skip to content

Commit

Permalink
refactor(tests): update eligibility type enrollment index template test
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Jun 10, 2024
1 parent 2feb724 commit 128a16d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/pytest/core/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,15 @@ def test_EligibilityType_supports_expiration(model_EligibilityType_supports_expi


@pytest.mark.django_db
def test_EligibilityType_enrollment_index_template(model_EligibilityType):
assert model_EligibilityType.enrollment_index_template == "enrollment/index.html"
def test_EligibilityType_enrollment_index_template():
new_eligibility_type = EligibilityType.objects.create()

assert new_eligibility_type.enrollment_index_template == "enrollment/index.html"

model_EligibilityType.enrollment_index_template = "test/enrollment.html"
model_EligibilityType.save()
new_eligibility_type.enrollment_index_template = "test/enrollment.html"
new_eligibility_type.save()

assert model_EligibilityType.enrollment_index_template == "test/enrollment.html"
assert new_eligibility_type.enrollment_index_template == "test/enrollment.html"


@pytest.mark.django_db
Expand Down

0 comments on commit 128a16d

Please sign in to comment.