Skip to content

Commit 13c9b03

Browse files
authored
Refactor(tests): Update eligibility type enrollment index template test (#2154)
2 parents 2feb724 + 128a16d commit 13c9b03

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/pytest/core/test_models.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,15 @@ def test_EligibilityType_supports_expiration(model_EligibilityType_supports_expi
238238

239239

240240
@pytest.mark.django_db
241-
def test_EligibilityType_enrollment_index_template(model_EligibilityType):
242-
assert model_EligibilityType.enrollment_index_template == "enrollment/index.html"
241+
def test_EligibilityType_enrollment_index_template():
242+
new_eligibility_type = EligibilityType.objects.create()
243+
244+
assert new_eligibility_type.enrollment_index_template == "enrollment/index.html"
243245

244-
model_EligibilityType.enrollment_index_template = "test/enrollment.html"
245-
model_EligibilityType.save()
246+
new_eligibility_type.enrollment_index_template = "test/enrollment.html"
247+
new_eligibility_type.save()
246248

247-
assert model_EligibilityType.enrollment_index_template == "test/enrollment.html"
249+
assert new_eligibility_type.enrollment_index_template == "test/enrollment.html"
248250

249251

250252
@pytest.mark.django_db

0 commit comments

Comments
 (0)