testproject-io / python-opensdk

TestProject OpenSDK for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Un-sanitized assertions in test reports

DavidG8168 opened this issue · comments

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:

image

With some unwanted characters like '\n+'