-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
testutils: mark tests in RC tracking issue and comment on status #173
Conversation
56a805b
to
c8d48ae
Compare
Rebased to current master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this could be improved by editing a single comment instead of continuously posting a comment for each test. But the work that has been done is already huge, so lets leave that as a future improvement. Can you just explain why the return yield
?
conftest.py
Outdated
result = yield | ||
testutils.github.update_issue(report) | ||
return result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why return yield
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yield
in a keyword to yield to the caller. This can produce results in fact. So what is here is
return result
not return yield
.
This is done in case the wrapping pytest_runtest_logreport()
returns something. See also https://docs.pytest.org/en/stable/writing_plugins.html#hookwrapper-executing-around-other-hooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then again: It is not expected to return anything... so no idea... will remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pointers to the documentation, it is clearer to me know.
please rebase and squash @miri64 |
08e331b
to
98774d3
Compare
Rebased and squashed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK!
This implements the functionality seen in #172, so marking a task as done in the tracking issue if it is succeeding (and not already marked as done) and commenting the results (if they are not already provided)