adding templates and refactor to use dashboard data endpoint

This commit is contained in:
Beverly Nguyen
2025-10-24 14:40:17 -07:00
parent 362c52ce8b
commit 9ead834492
3 changed files with 15 additions and 9 deletions

View File

@@ -1582,7 +1582,7 @@ def test_organization_dashboard_shows_service_counts(
],
)
mocker.patch(
"app.organizations_client.get_services_and_usage",
"app.organizations_client.get_organization_dashboard",
return_value={
"services": [
{
@@ -1658,7 +1658,7 @@ def test_organization_dashboard_services_table_shows_usage(
],
)
mocker.patch(
"app.organizations_client.get_services_and_usage",
"app.organizations_client.get_organization_dashboard",
return_value={
"services": [
{
@@ -1670,6 +1670,7 @@ def test_organization_dashboard_services_table_shows_usage(
"sms_cost": 42.75,
"active": True,
"restricted": False,
"recent_sms_template_name": "Welcome SMS",
},
{
"service_id": "2",
@@ -1680,6 +1681,7 @@ def test_organization_dashboard_services_table_shows_usage(
"sms_cost": 0,
"active": True,
"restricted": True,
"recent_sms_template_name": "Reminder SMS",
},
]
},