mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 08:08:25 -04:00
notify-api-412 use black to enforce python coding style
This commit is contained in:
@@ -1,25 +1,34 @@
|
||||
sample_inbound_sms = {'data': [{"id": "activated",
|
||||
"number": "2028675309",
|
||||
"provider": "provider_one",
|
||||
"service": {"id": "123234", "name": "Service One"},
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": "2017-08-15T13:30:30.12312"},
|
||||
{"id": "available",
|
||||
"number": "2028675308",
|
||||
"provider": "provider_one",
|
||||
"service": None,
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": None},
|
||||
{"id": "deactivated",
|
||||
"number": "2028675308",
|
||||
"provider": "provider_one",
|
||||
"service": None,
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": None}
|
||||
]}
|
||||
sample_inbound_sms = {
|
||||
"data": [
|
||||
{
|
||||
"id": "activated",
|
||||
"number": "2028675309",
|
||||
"provider": "provider_one",
|
||||
"service": {"id": "123234", "name": "Service One"},
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": "2017-08-15T13:30:30.12312",
|
||||
},
|
||||
{
|
||||
"id": "available",
|
||||
"number": "2028675308",
|
||||
"provider": "provider_one",
|
||||
"service": None,
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": None,
|
||||
},
|
||||
{
|
||||
"id": "deactivated",
|
||||
"number": "2028675308",
|
||||
"provider": "provider_one",
|
||||
"service": None,
|
||||
"active": True,
|
||||
"created_at": "2017-08-15T13:30:30.12312",
|
||||
"updated_at": None,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def test_inbound_sms_admin(
|
||||
@@ -27,7 +36,10 @@ def test_inbound_sms_admin(
|
||||
platform_admin_user,
|
||||
mocker,
|
||||
):
|
||||
mocker.patch("app.inbound_number_client.get_all_inbound_sms_number_service", return_value=sample_inbound_sms)
|
||||
mocker.patch(
|
||||
"app.inbound_number_client.get_all_inbound_sms_number_service",
|
||||
return_value=sample_inbound_sms,
|
||||
)
|
||||
client_request.login(platform_admin_user)
|
||||
page = client_request.get("main.inbound_sms_admin")
|
||||
assert page.h1.string.strip() == "Inbound SMS"
|
||||
|
||||
Reference in New Issue
Block a user