Coverage for benefits/eligibility/context/agency.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-03-13 23:09 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-03-13 23:09 +0000
1from django.utils.translation import gettext_lazy as _
3from benefits.core.context import AgencySlug
6class EligibilityIndex:
7 def __init__(self, form_text):
8 if not isinstance(form_text, list):
9 form_text = [form_text]
11 self.form_text = form_text
13 def dict(self):
14 return dict(form_text=self.form_text)
17eligibility_index = {
18 AgencySlug.CST.value: EligibilityIndex(
19 form_text=_(
20 "Cal-ITP doesn’t save any of your information. "
21 "All CST transit benefits reduce fares by 50%% for bus service on fixed routes.".replace("%%", "%")
22 )
23 ),
24 AgencySlug.MST.value: EligibilityIndex(
25 form_text=_(
26 "Cal-ITP doesn’t save any of your information. "
27 "All MST transit benefits reduce fares by 50%% for bus service on fixed routes.".replace("%%", "%")
28 )
29 ),
30 AgencySlug.NEVCO.value: EligibilityIndex(
31 form_text=_(
32 "Cal-ITP doesn’t save any of your information. "
33 "All Nevada County Connects transit benefits reduce fares by 50%% for bus service on fixed routes.".replace(
34 "%%", "%"
35 )
36 )
37 ),
38 AgencySlug.SACRT.value: EligibilityIndex(
39 form_text=[
40 _(
41 "Cal-ITP doesn’t save any of your information. "
42 "All SacRT transit benefits reduce fares by 50%% for bus service on fixed routes.".replace("%%", "%") # noqa
43 ),
44 _(
45 "With the new Tap2Ride fare system launching in 2025, SacRT riders that are eligible for discount fares can "
46 "enroll below. The discount benefit will be available on all SacRT buses beginning in early 2025 and will "
47 "include light rail tap devices later in the year." # noqa
48 ),
49 ]
50 ),
51 AgencySlug.SBMTD.value: EligibilityIndex(
52 form_text=_(
53 "Cal-ITP doesn’t save any of your information. "
54 "All SBMTD transit benefits reduce fares by 50%% for bus service on fixed routes.".replace("%%", "%")
55 )
56 ),
57}