Formatting and linting changes

This commit is contained in:
alexjanousekGSA
2025-07-31 07:49:12 -04:00
parent 7d5db34d16
commit 31a9e39846
15 changed files with 62 additions and 33 deletions

View File

@@ -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),
],

View File

@@ -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(

View File

@@ -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)