mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
change assert to satisfy linting
This commit is contained in:
parent
3b31a5c403
commit
60fcc888ad
1 changed files with 35 additions and 30 deletions
|
@ -1559,12 +1559,13 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
index = normalized_response.find(normalized_expected)
|
index = normalized_response.find(normalized_expected)
|
||||||
|
|
||||||
# Assert that the expected markup is found in the response
|
# Assert that the expected markup is found in the response
|
||||||
assert index != -1, (
|
if index == -1:
|
||||||
f"Expected markup not found in the response.\n\n"
|
self.fail(
|
||||||
f"Expected:\n{normalized_expected}\n\n"
|
f"Expected markup not found in the response.\n\n"
|
||||||
f"Start index of mismatch: {index}\n\n"
|
f"Expected:\n{normalized_expected}\n\n"
|
||||||
f"Consider checking the surrounding response for context."
|
f"Start index of mismatch: {index}\n\n"
|
||||||
)
|
f"Consider checking the surrounding response for context."
|
||||||
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_other_websites_has_few_readonly_links(self):
|
def test_other_websites_has_few_readonly_links(self):
|
||||||
|
@ -1603,12 +1604,13 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
index = normalized_response.find(normalized_expected)
|
index = normalized_response.find(normalized_expected)
|
||||||
|
|
||||||
# Assert that the expected markup is found in the response
|
# Assert that the expected markup is found in the response
|
||||||
assert index != -1, (
|
if index == -1:
|
||||||
f"Expected markup not found in the response.\n\n"
|
self.fail(
|
||||||
f"Expected:\n{normalized_expected}\n\n"
|
f"Expected markup not found in the response.\n\n"
|
||||||
f"Start index of mismatch: {index}\n\n"
|
f"Expected:\n{normalized_expected}\n\n"
|
||||||
f"Consider checking the surrounding response for context."
|
f"Start index of mismatch: {index}\n\n"
|
||||||
)
|
f"Consider checking the surrounding response for context."
|
||||||
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_other_websites_has_lots_readonly_links(self):
|
def test_other_websites_has_lots_readonly_links(self):
|
||||||
|
@ -1649,12 +1651,13 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
index = normalized_response.find(normalized_expected)
|
index = normalized_response.find(normalized_expected)
|
||||||
|
|
||||||
# Assert that the expected markup is found in the response
|
# Assert that the expected markup is found in the response
|
||||||
assert index != -1, (
|
if index == -1:
|
||||||
f"Expected markup not found in the response.\n\n"
|
self.fail(
|
||||||
f"Expected:\n{normalized_expected}\n\n"
|
f"Expected markup not found in the response.\n\n"
|
||||||
f"Start index of mismatch: {index}\n\n"
|
f"Expected:\n{normalized_expected}\n\n"
|
||||||
f"Consider checking the surrounding response for context."
|
f"Start index of mismatch: {index}\n\n"
|
||||||
)
|
f"Consider checking the surrounding response for context."
|
||||||
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_alternative_domains_has_one_readonly_link(self):
|
def test_alternative_domains_has_one_readonly_link(self):
|
||||||
|
@ -1690,12 +1693,13 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
index = normalized_response.find(normalized_expected)
|
index = normalized_response.find(normalized_expected)
|
||||||
|
|
||||||
# Assert that the expected markup is found in the response
|
# Assert that the expected markup is found in the response
|
||||||
assert index != -1, (
|
if index == -1:
|
||||||
f"Expected markup not found in the response.\n\n"
|
self.fail(
|
||||||
f"Expected:\n{normalized_expected}\n\n"
|
f"Expected markup not found in the response.\n\n"
|
||||||
f"Start index of mismatch: {index}\n\n"
|
f"Expected:\n{normalized_expected}\n\n"
|
||||||
f"Consider checking the surrounding response for context."
|
f"Start index of mismatch: {index}\n\n"
|
||||||
)
|
f"Consider checking the surrounding response for context."
|
||||||
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_alternative_domains_has_lots_readonly_link(self):
|
def test_alternative_domains_has_lots_readonly_link(self):
|
||||||
|
@ -1752,12 +1756,13 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
index = normalized_response.find(normalized_expected)
|
index = normalized_response.find(normalized_expected)
|
||||||
|
|
||||||
# Assert that the expected markup is found in the response
|
# Assert that the expected markup is found in the response
|
||||||
assert index != -1, (
|
if index == -1:
|
||||||
f"Expected markup not found in the response.\n\n"
|
self.fail(
|
||||||
f"Expected:\n{normalized_expected}\n\n"
|
f"Expected markup not found in the response.\n\n"
|
||||||
f"Start index of mismatch: {index}\n\n"
|
f"Expected:\n{normalized_expected}\n\n"
|
||||||
f"Consider checking the surrounding response for context."
|
f"Start index of mismatch: {index}\n\n"
|
||||||
)
|
f"Consider checking the surrounding response for context."
|
||||||
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_contact_fields_have_detail_table(self):
|
def test_contact_fields_have_detail_table(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue