change assert to satisfy linting

This commit is contained in:
Rachid Mrad 2025-01-06 14:30:00 -05:00
parent 3b31a5c403
commit 60fcc888ad
No known key found for this signature in database

View file

@ -1559,12 +1559,13 @@ class TestDomainRequestAdmin(MockEppLib):
index = normalized_response.find(normalized_expected)
# Assert that the expected markup is found in the response
assert index != -1, (
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
if index == -1:
self.fail(
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
@less_console_noise_decorator
def test_other_websites_has_few_readonly_links(self):
@ -1603,12 +1604,13 @@ class TestDomainRequestAdmin(MockEppLib):
index = normalized_response.find(normalized_expected)
# Assert that the expected markup is found in the response
assert index != -1, (
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
if index == -1:
self.fail(
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
@less_console_noise_decorator
def test_other_websites_has_lots_readonly_links(self):
@ -1649,12 +1651,13 @@ class TestDomainRequestAdmin(MockEppLib):
index = normalized_response.find(normalized_expected)
# Assert that the expected markup is found in the response
assert index != -1, (
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
if index == -1:
self.fail(
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
@less_console_noise_decorator
def test_alternative_domains_has_one_readonly_link(self):
@ -1690,12 +1693,13 @@ class TestDomainRequestAdmin(MockEppLib):
index = normalized_response.find(normalized_expected)
# Assert that the expected markup is found in the response
assert index != -1, (
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
if index == -1:
self.fail(
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
@less_console_noise_decorator
def test_alternative_domains_has_lots_readonly_link(self):
@ -1752,12 +1756,13 @@ class TestDomainRequestAdmin(MockEppLib):
index = normalized_response.find(normalized_expected)
# Assert that the expected markup is found in the response
assert index != -1, (
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
if index == -1:
self.fail(
f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n"
f"Consider checking the surrounding response for context."
)
@less_console_noise_decorator
def test_contact_fields_have_detail_table(self):