Reformatted a handful more tests

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-09-08 17:58:06 -04:00
parent 23f894581c
commit 72c8a46b8c
21 changed files with 139 additions and 118 deletions

View File

@@ -39,15 +39,15 @@ def _folder(name, folder_id=None, parent=None, users_with_permission=None):
@pytest.mark.parametrize(
(
"expected_title_tag,"
"expected_page_title,"
"expected_parent_link_args,"
"extra_args,"
"expected_nav_links,"
"expected_items, "
"expected_displayed_items, "
"expected_searchable_text, "
"expected_empty_message "
"expected_title_tag",
"expected_page_title",
"expected_parent_link_args",
"extra_args",
"expected_nav_links",
"expected_items",
"expected_displayed_items",
"expected_searchable_text",
"expected_empty_message",
),
[
(
@@ -1026,10 +1026,10 @@ def test_delete_template_folder_should_detect_non_empty_folder_on_get(
@pytest.mark.parametrize(
"parent_folder_id",
(
[
None,
PARENT_FOLDER_ID,
),
],
)
def test_delete_folder(
client_request,
@@ -1117,7 +1117,9 @@ def test_should_show_checkboxes_for_selecting_templates_assertion_error(
mock_get_no_api_keys,
user,
):
with pytest.raises(expected_exception=AssertionError):
with pytest.raises( # noqa: PT012 # This will require more research into refactoring.
expected_exception=AssertionError
):
client_request.login(user)
page = client_request.get(
@@ -1289,7 +1291,7 @@ def test_should_be_able_to_move_to_existing_folder(
@pytest.mark.parametrize(
"user, expected_status, expected_called",
("user", "expected_status", "expected_called"),
[
(create_active_user_view_permissions(), 403, False),
(create_active_user_with_permissions(), 302, True),
@@ -1618,7 +1620,7 @@ def test_radio_button_with_no_value_shows_custom_error_message(
@pytest.mark.parametrize(
"data, error_msg",
("data", "error_msg"),
[
# nothing selected when moving
(
@@ -1678,10 +1680,10 @@ def test_show_custom_error_message(
@pytest.mark.parametrize(
(
"extra_args,"
"expected_displayed_items, "
"expected_items, "
"expected_empty_message "
"extra_args",
"expected_displayed_items",
"expected_items",
"expected_empty_message",
),
[
(