mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 21:46:33 +02:00
avoid flooding console
This commit is contained in:
parent
49c900297e
commit
61bfec9982
1 changed files with 45 additions and 5 deletions
|
@ -1475,7 +1475,15 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
normalized_expected = normalize_html(expected_markup)
|
normalized_expected = normalize_html(expected_markup)
|
||||||
normalized_response = normalize_html(response.content.decode("utf-8"))
|
normalized_response = normalize_html(response.content.decode("utf-8"))
|
||||||
|
|
||||||
self.assertIn(normalized_expected, normalized_response)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@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):
|
||||||
|
@ -1511,7 +1519,15 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
normalized_expected = normalize_html(expected_markup)
|
normalized_expected = normalize_html(expected_markup)
|
||||||
normalized_response = normalize_html(response.content.decode("utf-8"))
|
normalized_response = normalize_html(response.content.decode("utf-8"))
|
||||||
|
|
||||||
self.assertIn(normalized_expected, normalized_response)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@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):
|
||||||
|
@ -1549,7 +1565,15 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
normalized_expected = normalize_html(expected_markup)
|
normalized_expected = normalize_html(expected_markup)
|
||||||
normalized_response = normalize_html(response.content.decode("utf-8"))
|
normalized_response = normalize_html(response.content.decode("utf-8"))
|
||||||
|
|
||||||
self.assertIn(normalized_expected, normalized_response)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@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):
|
||||||
|
@ -1582,7 +1606,15 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
normalized_expected = normalize_html(expected_markup)
|
normalized_expected = normalize_html(expected_markup)
|
||||||
normalized_response = normalize_html(response.content.decode("utf-8"))
|
normalized_response = normalize_html(response.content.decode("utf-8"))
|
||||||
|
|
||||||
self.assertIn(normalized_expected, normalized_response)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@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):
|
||||||
|
@ -1636,7 +1668,15 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
normalized_expected = normalize_html(expected_markup)
|
normalized_expected = normalize_html(expected_markup)
|
||||||
normalized_response = normalize_html(response.content.decode("utf-8"))
|
normalized_response = normalize_html(response.content.decode("utf-8"))
|
||||||
|
|
||||||
self.assertIn(normalized_expected, normalized_response)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@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