mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
update tests to reflect no loadtesting provider
This commit is contained in:
@@ -38,7 +38,7 @@ def set_primary_sms_provider(identifier):
|
||||
|
||||
def test_can_get_sms_non_international_providers(restore_provider_details):
|
||||
sms_providers = get_provider_details_by_notification_type('sms')
|
||||
assert len(sms_providers) == 3
|
||||
assert len(sms_providers) == 2
|
||||
assert all('sms' == prov.notification_type for prov in sms_providers)
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ def test_dao_get_provider_stats(notify_db_session):
|
||||
|
||||
result = dao_get_provider_stats()
|
||||
|
||||
assert len(result) == 5
|
||||
assert len(result) == 4
|
||||
|
||||
assert result[0].identifier == 'ses'
|
||||
assert result[0].display_name == 'AWS SES'
|
||||
|
||||
@@ -15,7 +15,7 @@ def test_get_provider_details_in_type_and_identifier_order(client, notify_db):
|
||||
)
|
||||
assert response.status_code == 200
|
||||
json_resp = json.loads(response.get_data(as_text=True))['provider_details']
|
||||
assert len(json_resp) == 5
|
||||
assert len(json_resp) == 4
|
||||
|
||||
assert json_resp[0]['identifier'] == 'ses'
|
||||
assert json_resp[1]['identifier'] == 'mmg'
|
||||
@@ -54,7 +54,7 @@ def test_get_provider_contains_correct_fields(client, sample_service, sample_tem
|
||||
"active", "updated_at", "supports_international",
|
||||
"current_month_billable_sms"
|
||||
}
|
||||
assert len(json_resp) == 5
|
||||
assert len(json_resp) == 4
|
||||
assert allowed_keys == set(json_resp[0].keys())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user