mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 14:11:41 -04:00
Fix page with missing import and added unit test.
This commit is contained in:
@@ -59,3 +59,18 @@ def test_set_inbound_sms_when_service_already_has_sms(
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select_one('main p').text) == "This service already has an inbound number"
|
||||
|
||||
|
||||
def test_set_inbound_sms_when_service_does_not_have_sms(
|
||||
client_request,
|
||||
service_one,
|
||||
multiple_available_inbound_numbers,
|
||||
mock_no_inbound_number_for_service,
|
||||
):
|
||||
|
||||
page = client_request.get(
|
||||
'main.service_set_inbound_number',
|
||||
service_id=service_one['id']
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select_one('input')['name']) == "inbound_number"
|
||||
|
||||
Reference in New Issue
Block a user