Skip to content

Commit ca80181

Browse files
authored
Feat: Metro Mobility Wallet Django app (#3997)
2 parents 53c31fb + b0e5b51 commit ca80181

9 files changed

Lines changed: 57 additions & 0 deletions

File tree

benefits/metro_mobility_wallet/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class MetroMobilityWalletConfig(AppConfig):
5+
name = "benefits.metro_mobility_wallet"
6+
label = "metro_mobility_wallet"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="description"
6+
content="The Mobility Wallet pilot program encourages transportation equity by promoting access to opportunities,
7+
reducing gas emissions and improving economic and health outcomes for people in Los Angeles County.">
8+
<title>Metro Mobility Wallet Pilot Program</title>
9+
</head>
10+
<body>
11+
<main>
12+
Metro Mobility Wallet Pilot Program
13+
</main>
14+
</body>
15+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
The metro_mobility_wallet application: URLConf for the metro_mobility_wallet app.
3+
"""
4+
5+
from django.urls import path
6+
7+
from . import views
8+
9+
app_name = "metro_mobility_wallet"
10+
urlpatterns = [
11+
# /metro-mobility-wallet/
12+
path("", views.IndexView.as_view(), name="index"),
13+
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.views.generic import TemplateView
2+
3+
4+
class IndexView(TemplateView):
5+
"""View for the Metro Mobility Wallet landing page."""
6+
7+
template_name = "metro_mobility_wallet/index.html"

benefits/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def RUNTIME_ENVIRONMENT():
6868
"benefits.eligibility",
6969
"benefits.oauth",
7070
"benefits.in_person",
71+
"benefits.metro_mobility_wallet",
7172
]
7273

7374
GOOGLE_SSO_CLIENT_ID = os.environ.get("GOOGLE_SSO_CLIENT_ID", "secret")

benefits/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
path("in_person/", include("benefits.in_person.urls")),
3939
path("littlepay/", include("benefits.enrollment_littlepay.urls")),
4040
path("switchio/", include("benefits.enrollment_switchio.urls")),
41+
path("metro-mobility-wallet/", include("benefits.metro_mobility_wallet.urls")),
4142
]
4243

4344
if settings.RUNTIME_ENVIRONMENT() == settings.RUNTIME_ENVS.LOCAL:

tests/pytest/metro_mobility_wallet/__init__.py

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pytest
2+
3+
import benefits.metro_mobility_wallet.views as views
4+
5+
6+
class TestIndexView:
7+
@pytest.fixture
8+
def view(self, app_request):
9+
v = views.IndexView()
10+
v.setup(app_request)
11+
return v
12+
13+
def test_template_name(self, view):
14+
assert view.template_name == "metro_mobility_wallet/index.html"

0 commit comments

Comments
 (0)