-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: remove extra characters in the command line prompt #5153
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Remove extra characters in the shown command line prompts in the test discovery | ||
documentation. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ You can always peek at the collection tree without running tests like this: | |
|
||
.. code-block:: pytest | ||
|
||
. $ pytest --collect-only pythoncollection.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are there to not run regendoc, because regendoc uses the line starting as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this PR is probably bogus. Should I open an issue to have a mechanism for this that doesn't uglify the docs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea, I would kindly ask to create it in https://github.com/pytest-dev/regendoc though. 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that studying the code, a dot with a space should not stop regendoc: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why though? Shouldn't we have working examples for those also? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right, probably they should |
||
$ pytest --collect-only pythoncollection.py | ||
=========================== test session starts ============================ | ||
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y | ||
cachedir: $PYTHON_PREFIX/.pytest_cache | ||
|
@@ -266,7 +266,7 @@ leave out the ``setup.py`` file: | |
|
||
.. code-block:: pytest | ||
|
||
#$ pytest --collect-only | ||
$ pytest --collect-only | ||
====== test session starts ====== | ||
platform linux2 -- Python 2.7.10, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini | ||
|
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.
btw: I do not think we need a changelog for this.
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.
me neither. creating this was pain via github.
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.
https://github.com/pytest-dev/pytest/blob/master/changelog/README.rst
Note sure if the "might be noteworthy" part applies to fixing typos, but I think this list should be updated to say not to create this just for a trivial typo fix.
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.
Oh excellent point, thanks for pointing that out! We should update that templates to mean that trivial is meant to actual code or dependency changes, but not to small documentation changes in general. 👍