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 implemented the pytest_report_teststatus hook method in the conftest.py file, but when I formulated the return value in combination with the official pytest documentation, I had a doubt.
Here is the return value example from the official documentation [https://docs.pytest.org/en/latest/reference/reference.html#_pytest.hookspec.pytest_report_teststatus]:
"rerun", "R", ("RERUN", {"yellow": True})
The following code is completed by me referring to the official documentation:
So, my doubt is where can I know the format of the detailed words, for example, I can write it like this report.outcome, 'T', ("😀", {"yellow": True}), or I can write it like this report.outcome, 'T', "😀".
Or, where can I learn about the resulting format of verbose word,Such as ("😀", {"yellow": True}) and "😀".
This is a small and detailed question, but I'm looking forward to an answer, thanks a lot!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I implemented the pytest_report_teststatus hook method in the conftest.py file, but when I formulated the return value in combination with the official pytest documentation, I had a doubt.
So, my doubt is where can I know the format of the detailed words, for example, I can write it like this
report.outcome, 'T', ("😀", {"yellow": True})
, or I can write it like thisreport.outcome, 'T', "😀"
.Or, where can I learn about the resulting format of verbose word,Such as
("😀", {"yellow": True})
and "😀".This is a small and detailed question, but I'm looking forward to an answer, thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions