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,7 +1559,8 @@ 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:
self.fail(
f"Expected markup not found in the response.\n\n" f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n" f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n" f"Start index of mismatch: {index}\n\n"
@ -1603,7 +1604,8 @@ 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:
self.fail(
f"Expected markup not found in the response.\n\n" f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n" f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n" f"Start index of mismatch: {index}\n\n"
@ -1649,7 +1651,8 @@ 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:
self.fail(
f"Expected markup not found in the response.\n\n" f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n" f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n" f"Start index of mismatch: {index}\n\n"
@ -1690,7 +1693,8 @@ 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:
self.fail(
f"Expected markup not found in the response.\n\n" f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n" f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n" f"Start index of mismatch: {index}\n\n"
@ -1752,7 +1756,8 @@ 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:
self.fail(
f"Expected markup not found in the response.\n\n" f"Expected markup not found in the response.\n\n"
f"Expected:\n{normalized_expected}\n\n" f"Expected:\n{normalized_expected}\n\n"
f"Start index of mismatch: {index}\n\n" f"Start index of mismatch: {index}\n\n"