mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-09 14:45:00 -05:00
pytest
This commit is contained in:
@@ -1521,7 +1521,7 @@ def test_organization_billing_page_not_accessible_if_not_platform_admin(
|
||||
)
|
||||
|
||||
|
||||
def test_organization_dashboard_shows_message_usage(
|
||||
def test_organization_dashboard_shows_messages_sent(
|
||||
client_request,
|
||||
mock_get_organization,
|
||||
mocker,
|
||||
@@ -1531,8 +1531,6 @@ def test_organization_dashboard_shows_message_usage(
|
||||
"app.organizations_client.get_organization_message_usage",
|
||||
return_value={
|
||||
"messages_sent": 1000,
|
||||
"messages_remaining": 2000,
|
||||
"total_message_limit": 3000,
|
||||
},
|
||||
)
|
||||
mocker.patch(
|
||||
@@ -1553,11 +1551,7 @@ def test_organization_dashboard_shows_message_usage(
|
||||
mock_message_usage.assert_called_once_with(ORGANISATION_ID)
|
||||
|
||||
assert normalize_spaces(page.select_one("h1").text) == "Organization Dashboard"
|
||||
|
||||
chart_container = page.select_one("#totalMessageChartContainer")
|
||||
assert chart_container["data-messages-sent"] == "1000"
|
||||
assert chart_container["data-messages-remaining"] == "2000"
|
||||
assert chart_container["data-total-message-limit"] == "3000"
|
||||
assert "1,000 sent" in page.text
|
||||
|
||||
|
||||
def test_organization_dashboard_shows_service_counts(
|
||||
|
||||
Reference in New Issue
Block a user