You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using pytest-html for report generation. The version is 4.1.1, however I get below error.
"/home/sqm/2060-3/sqm/test/regression/src/sqm_tests/.tox/py38/lib/python3.8/site-packages/pytest_html/report_data.py", line 140, in add_test
INTERNALERROR> test_data["log"] = _handle_ansi("\n".join(logs))
INTERNALERROR> TypeError: sequence item 0: expected str instance, div found
Typecasting "logs" to string, resolves the error and I can generate the report.
Let me know if I need to use pytest-html in different way or this is probable fix for future release.
I am using python3.8.10 for test
The text was updated successfully, but these errors were encountered:
I am using pytest-html for report generation. The version is 4.1.1, however I get below error.
"/home/sqm/2060-3/sqm/test/regression/src/sqm_tests/.tox/py38/lib/python3.8/site-packages/pytest_html/report_data.py", line 140, in add_test
INTERNALERROR> test_data["log"] = _handle_ansi("\n".join(logs))
INTERNALERROR> TypeError: sequence item 0: expected str instance, div found
Typecasting "logs" to string, resolves the error and I can generate the report.
Let me know if I need to use pytest-html in different way or this is probable fix for future release.
I am using python3.8.10 for test
The text was updated successfully, but these errors were encountered: