Skip to content

Commit

Permalink
feat(sbmtd/senior): define EligibilityVerifier
Browse files Browse the repository at this point in the history
rename variable names for senior verifiers
  • Loading branch information
angela-tran committed Aug 9, 2023
1 parent d5de985 commit 8c0280c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions benefits/core/migrations/0002_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def load_data(app, *args, **kwargs):

EligibilityVerifier = app.get_model("core", "EligibilityVerifier")

mst_oauth_claims_verifier = EligibilityVerifier.objects.create(
mst_senior_verifier = EligibilityVerifier.objects.create(
name=os.environ.get("MST_OAUTH_VERIFIER_NAME", "OAuth claims via Login.gov (MST)"),
eligibility_type=mst_senior_type,
auth_provider=senior_auth_provider,
Expand Down Expand Up @@ -195,14 +195,22 @@ def load_data(app, *args, **kwargs):
form_name_max_length=255,
)

sacrt_oauth_claims_verifier = EligibilityVerifier.objects.create(
sacrt_senior_verifier = EligibilityVerifier.objects.create(
name=os.environ.get("SACRT_OAUTH_VERIFIER_NAME", "OAuth claims via Login.gov (SacRT)"),
eligibility_type=sacrt_senior_type,
auth_provider=senior_auth_provider,
selection_label_template="eligibility/includes/selection-label--senior.html",
start_template="eligibility/start--senior.html",
)

sbmtd_senior_verifier = EligibilityVerifier.objects.create(
name=os.environ.get("SBMTD_OAUTH_VERIFIER_NAME", "OAuth claims via Login.gov (SBMTD)"),
eligibility_type=sbmtd_senior_type,
auth_provider=senior_auth_provider,
selection_label_template="eligibility/includes/selection-label--senior.html",
start_template="eligibility/start--senior.html",
)

PaymentProcessor = app.get_model("core", "PaymentProcessor")

mst_payment_processor = PaymentProcessor.objects.create(
Expand Down Expand Up @@ -265,7 +273,7 @@ def load_data(app, *args, **kwargs):
help_template="core/includes/help--mst.html",
)
mst_agency.eligibility_types.set([mst_senior_type, mst_veteran_type, mst_courtesy_card_type])
mst_agency.eligibility_verifiers.set([mst_oauth_claims_verifier, mst_veteran_verifier, mst_courtesy_card_verifier])
mst_agency.eligibility_verifiers.set([mst_senior_verifier, mst_veteran_verifier, mst_courtesy_card_verifier])

sacrt_agency = TransitAgency.objects.create(
slug="sacrt",
Expand All @@ -285,7 +293,7 @@ def load_data(app, *args, **kwargs):
enrollment_success_template="enrollment/success--sacrt.html",
)
sacrt_agency.eligibility_types.set([sacrt_senior_type])
sacrt_agency.eligibility_verifiers.set([sacrt_oauth_claims_verifier])
sacrt_agency.eligibility_verifiers.set([sacrt_senior_verifier])


class Migration(migrations.Migration):
Expand Down

0 comments on commit 8c0280c

Please sign in to comment.