| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I'm wondering if I should/can add an import of TerminalReporter somewhere around Lines 70 to 72 in 6c806b4 |
Sorry, something went wrong.
There was a problem hiding this comment.
Hi @soxofaan, thanks for the PR.
The TerminalReporter not being part of the docs is an oversight, given they are part of the signature of pytest_terminal_summary.
I'm wondering if I should/can add an import of TerminalReporter somewhere around
Yes we should also publish it as part of the public API: if it is used by a public hook, it should also be available from the pytest namespace.
Also the build failed with:
/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/12661/lib/python3.12/site-packages/_pytest/terminal.py:docstring of _pytest.terminal.TerminalReporter.build_summary_stats_line:11: WARNING: Definition list ends without a blank line; unexpected unindent.
Probably just need to fix the docstring here:
pytest/src/_pytest/terminal.py
Lines 1342 to 1343 in 6c806b4
To:
This function builds a list of the "parts" that make up for the text in that line, in
- the example above it would be:
+ the example above it would be::It is unfortunate that the entire terminal plugin is being passed along to this hook, but too late for this now so we might as well document it.
Sorry, something went wrong.
|
In stoll hoping we can replace it, It's api is from python 2.4 times and libraries more dedicated to the topic recently showed a much nicer variant (like rich) |
Sorry, something went wrong.
|
thanks for the feedback. All tests pass now |
Sorry, something went wrong.
I know, let's hope we manage to eventually find the time (and will) to do that. 🤞 |
Sorry, something went wrong.
|
This while small should not be backported, as it is introducing a new public symbol, so it should happen in the next minor release. |
Sorry, something went wrong.
|
@RonnyPfannschmidt build_summary_stats_line now appears in the docs... want to mark it as private instead (using :private: in the docstring)? |
Sorry, something went wrong.
|
(I have a local fix for the docs, will push shortly) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #6649