This commit is contained in:
Kenneth Kehl
2025-10-27 07:59:59 -07:00
parent 61ce3b0b5c
commit b760d45c8b

View File

@@ -960,10 +960,15 @@ def test_get_organization_message_allowance(admin_request, sample_organization,
assert response["total_message_limit"] == 150000
assert mock_get_counts.call_count == 1
mock_get_counts.assert_called_once_with([service_1.id, service_2.id], 2025)
mock_get_counts.assert_called_once()
args, _ = mock_get_counts.call_args
assert set(args[0]) == {service_1.id, service_2.id}
assert args[1] == 2025
def test_get_organization_message_allowance_no_services(admin_request, sample_organization):
def test_get_organization_message_allowance_no_services(
admin_request, sample_organization
):
response = admin_request.get(
"organization.get_organization_message_allowance",
organization_id=sample_organization.id,