-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest terminal transcoding unicode conflict with report #450
Comments
Is there a good solution to this problem at present? |
Unfortunately not. At least not one that I'm aware of. We plan to address this in next-gen however. |
Thank you for your answer, look forward to |
Thank you. When is the next version expected to be released? |
I'd like to note that mutation of nodeid is absolutely unsupported and any breakage is on the person doing it, It's not a use case that should be supported |
Any day now 😅 |
Tested hooks on 4.0.0rc4, terminal and html file are no longer garbled def pytest_collection_modifyitems(items):
for item in items:
item.name = item.name.encode("utf-8").decode("unicode_escape")
item._nodeid = item.nodeid.encode("utf-8").decode("unicode_escape") When will 4.0.0 be released? |
I’m releasing rc5 before EOW for a final round of testing. Then as soon as I’ve updated docs incl. Changelog, I’ll release 4.0.0. |
Well done, looking forward to it. |
I use
pytest.mark.parametrize
, then conftest.py exists code:if I execute
pytest -s -v --capture=sys --html=report/test.html .\test_01.py
,html report displayed title is garbled,but if pytest-html=2.0.0, there is no such problem.
this is pytest-ntml=2.0.0:
this is pytest-html=3.x.x:
If i not run the hooks function
pytest_collection_modifyitems
, terminal output is unicode. If i run hooks, pytest-html case title is Garbled.The text was updated successfully, but these errors were encountered: