Skip to content

Commit

Permalink
Refactor(tests): Update eligibility type enrollment index template te…
Browse files Browse the repository at this point in the history
…st (#2154)
  • Loading branch information
lalver1 authored Jun 11, 2024
2 parents 2feb724 + 128a16d commit 13c9b03
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 13c9b03

Please sign in to comment.