mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
fixing more linting errors
This commit is contained in:
@@ -410,9 +410,8 @@ def test_should_show_templates_folder_page(
|
|||||||
|
|
||||||
if expected_empty_message:
|
if expected_empty_message:
|
||||||
empty_messages = [p for p in page.select("p.text-base") if "No templates found" not in p.text]
|
empty_messages = [p for p in page.select("p.text-base") if "No templates found" not in p.text]
|
||||||
assert empty_messages and normalize_spaces(empty_messages[0].text) == (
|
assert empty_messages, "No empty folder message found"
|
||||||
expected_empty_message
|
assert normalize_spaces(empty_messages[0].text) == expected_empty_message
|
||||||
)
|
|
||||||
|
|
||||||
mock_get_service_templates.assert_called_once_with(SERVICE_ONE_ID)
|
mock_get_service_templates.assert_called_once_with(SERVICE_ONE_ID)
|
||||||
|
|
||||||
@@ -1804,6 +1803,5 @@ def test_should_filter_templates_folder_page_based_on_user_permissions(
|
|||||||
# Look for the empty folder message specifically, not the live search no results message
|
# Look for the empty folder message specifically, not the live search no results message
|
||||||
# The empty folder message is in a div > p.text-base structure, whereas search no results is different
|
# The empty folder message is in a div > p.text-base structure, whereas search no results is different
|
||||||
empty_messages = [p for p in page.select("p.text-base") if "No templates found" not in p.text]
|
empty_messages = [p for p in page.select("p.text-base") if "No templates found" not in p.text]
|
||||||
assert empty_messages and normalize_spaces(empty_messages[0].text) == (
|
assert empty_messages, "No empty folder message found"
|
||||||
expected_empty_message
|
assert normalize_spaces(empty_messages[0].text) == expected_empty_message
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user