mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Formatting and linting changes
This commit is contained in:
@@ -202,7 +202,11 @@ def test_service_setting_link_toggles_index_error(
|
||||
("permissions", "permissions_text", "visible"),
|
||||
[
|
||||
("sms", "inbound SMS", True),
|
||||
(ServicePermission.INBOUND_SMS, "inbound SMS", False), # no sms parent permission
|
||||
(
|
||||
ServicePermission.INBOUND_SMS,
|
||||
"inbound SMS",
|
||||
False,
|
||||
), # no sms parent permission
|
||||
# also test no permissions set
|
||||
("", "inbound SMS", False),
|
||||
],
|
||||
|
||||
@@ -182,10 +182,12 @@ def test_should_show_create_api_key_page(
|
||||
for index, option in enumerate(expected_options):
|
||||
item = page.select(".usa-radio")[index]
|
||||
if type(option) is tuple:
|
||||
assert normalize_spaces(item.select_one(".usa-label").text) == option[0]
|
||||
assert (
|
||||
normalize_spaces(item.select_one(".usa-radio__label").text) == option[0]
|
||||
)
|
||||
assert normalize_spaces(item.select_one(".usa-hint").text) == option[1]
|
||||
else:
|
||||
assert normalize_spaces(item.select_one(".usa-label").text) == option
|
||||
assert normalize_spaces(item.select_one(".usa-radio__label").text) == option
|
||||
|
||||
|
||||
def test_should_create_api_key_with_type_normal(
|
||||
|
||||
@@ -966,7 +966,7 @@ def test_menu_manage_service(
|
||||
ServicePermission.VIEW_ACTIVITY,
|
||||
ServicePermission.MANAGE_TEMPLATES,
|
||||
ServicePermission.MANAGE_USERS,
|
||||
ServicePermission.MANAGE_SETTINGS
|
||||
ServicePermission.MANAGE_SETTINGS,
|
||||
],
|
||||
)
|
||||
page = str(page)
|
||||
|
||||
Reference in New Issue
Block a user