mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
more fixes
This commit is contained in:
@@ -304,7 +304,7 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
|
||||
assert count_of_templates == 4
|
||||
|
||||
|
||||
@pytest.mark.parametrize( # noqa: PT014 # Requires more research why there are duplicate params here.
|
||||
@pytest.mark.parametrize(
|
||||
("service_permissions", "expected_values", "expected_labels"),
|
||||
[
|
||||
pytest.param(
|
||||
@@ -320,19 +320,20 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
|
||||
"Copy an existing template",
|
||||
],
|
||||
),
|
||||
pytest.param(
|
||||
["email", "sms"],
|
||||
[
|
||||
# 'email',
|
||||
"sms",
|
||||
"copy-existing",
|
||||
],
|
||||
[
|
||||
# 'Email',
|
||||
"Start with a blank template",
|
||||
"Copy an existing template",
|
||||
],
|
||||
),
|
||||
# TODO This is a duplicate of above. Why?
|
||||
# pytest.param(
|
||||
# ["email", "sms"],
|
||||
# [
|
||||
# # 'email',
|
||||
# "sms",
|
||||
# "copy-existing",
|
||||
# ],
|
||||
# [
|
||||
# # 'Email',
|
||||
# "Start with a blank template",
|
||||
# "Copy an existing template",
|
||||
# ],
|
||||
# ),
|
||||
],
|
||||
)
|
||||
def test_should_show_new_template_choices_if_service_has_folder_permission(
|
||||
@@ -753,9 +754,9 @@ def test_choose_a_template_to_copy(
|
||||
|
||||
assert len(actual) == len(expected)
|
||||
|
||||
for actual, expected in zip(actual, expected): # noqa: B020
|
||||
zipobject = zip(actual, expected)
|
||||
for actual, expected in zipobject:
|
||||
assert normalize_spaces(actual.text) == expected
|
||||
|
||||
links = page.select("main nav a")
|
||||
assert links[0]["href"] == url_for(
|
||||
"main.choose_template_to_copy",
|
||||
@@ -799,7 +800,8 @@ def test_choose_a_template_to_copy_when_user_has_one_service(
|
||||
|
||||
assert len(actual) == len(expected)
|
||||
|
||||
for actual, expected in zip(actual, expected): # noqa: B020
|
||||
zipobject = zip(actual, expected)
|
||||
for actual, expected in zipobject:
|
||||
assert normalize_spaces(actual.text) == expected
|
||||
|
||||
assert page.select("main nav a")[0]["href"] == url_for(
|
||||
@@ -875,7 +877,8 @@ def test_choose_a_template_to_copy_from_folder_within_service(
|
||||
|
||||
assert len(actual) == len(expected)
|
||||
|
||||
for actual, expected in zip(actual, expected): # noqa: B020
|
||||
zipobject = zip(actual, expected)
|
||||
for actual, expected in zipobject:
|
||||
assert normalize_spaces(actual.text) == expected
|
||||
|
||||
links = page.select("main nav a")
|
||||
|
||||
Reference in New Issue
Block a user