Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor(tests): Update eligibility type enrollment index template test #2154

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading