Un-sanitized assertions in test reports
DavidG8168 opened this issue · comments
David Goichman commented
Some assertions appear with additional unwanted characters such as line breaks in the reports, for example while running the following assertion:
def get_response_status_code():
response = requests.get("https://www.metaweather.com/api/location/search/?query=San Francisco")
return response.status_code
@report_assertion_errors
def test_response_status_code():
# Should be equal to 200.
assert get_response_status_code() == 500
In TestProject, the assertion in the report will appear as follows:
With some unwanted characters like '\n+'
Tzah Mazuz commented