Skip to content

Commit 93d2ccb

Browse files
committed
Point to stable docs instead of latest
Now that our master might contain new features, it is best to point users to the stable docs rather than the latest
1 parent b6a31b9 commit 93d2ccb

File tree

121 files changed

+226
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+226
-226
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Changelog
33
=========
44

5-
The pytest CHANGELOG is located `here <https://docs.pytest.org/en/latest/changelog.html>`__.
5+
The pytest CHANGELOG is located `here <https://docs.pytest.org/en/stable/changelog.html>`__.
66

77
The source document can be found at: https://github.com/pytest-dev/pytest/blob/master/doc/en/changelog.rst

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Here is a simple overview, with pytest-specific bits:
294294
Writing Tests
295295
~~~~~~~~~~~~~
296296

297-
Writing tests for plugins or for pytest itself is often done using the `testdir fixture <https://docs.pytest.org/en/latest/reference.html#testdir>`_, as a "black-box" test.
297+
Writing tests for plugins or for pytest itself is often done using the `testdir fixture <https://docs.pytest.org/en/stable/reference.html#testdir>`_, as a "black-box" test.
298298

299299
For example, to ensure a simple test passes you can write:
300300

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. image:: https://docs.pytest.org/en/latest/_static/pytest1.png
2-
:target: https://docs.pytest.org/en/latest/
1+
.. image:: https://docs.pytest.org/en/stable/_static/pytest1.png
2+
:target: https://docs.pytest.org/en/stable/
33
:align: center
44
:alt: pytest
55

@@ -71,23 +71,23 @@ To execute it::
7171
========================== 1 failed in 0.04 seconds ===========================
7272

7373

74-
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/latest/getting-started.html#our-first-test-run>`_ for more examples.
74+
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>`_ for more examples.
7575

7676

7777
Features
7878
--------
7979

80-
- Detailed info on failing `assert statements <https://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
80+
- Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/assert.html>`_ (no need to remember ``self.assert*`` names);
8181

8282
- `Auto-discovery
83-
<https://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
83+
<https://docs.pytest.org/en/stable/goodpractices.html#python-test-discovery>`_
8484
of test modules and functions;
8585

86-
- `Modular fixtures <https://docs.pytest.org/en/latest/fixture.html>`_ for
86+
- `Modular fixtures <https://docs.pytest.org/en/stable/fixture.html>`_ for
8787
managing small or parametrized long-lived test resources;
8888

89-
- Can run `unittest <https://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
90-
`nose <https://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
89+
- Can run `unittest <https://docs.pytest.org/en/stable/unittest.html>`_ (or trial),
90+
`nose <https://docs.pytest.org/en/stable/nose.html>`_ test suites out of the box;
9191

9292
- Python 3.5+ and PyPy3;
9393

@@ -97,7 +97,7 @@ Features
9797
Documentation
9898
-------------
9999

100-
For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/latest/.
100+
For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
101101

102102

103103
Bugs/Requests
@@ -109,7 +109,7 @@ Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issue
109109
Changelog
110110
---------
111111

112-
Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
112+
Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
113113

114114

115115
Support pytest

doc/en/announce/release-2.0.0.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ see below for summary and detailed lists. A lot of long-deprecated code
77
has been removed, resulting in a much smaller and cleaner
88
implementation. See the new docs with examples here:
99

10-
http://pytest.org/en/latest/index.html
10+
http://pytest.org/en/stable/index.html
1111

1212
A note on packaging: pytest used to part of the "py" distribution up
1313
until version py-1.3.4 but this has changed now: pytest-2.0.0 only
@@ -36,12 +36,12 @@ New Features
3636

3737
import pytest ; pytest.main(arglist, pluginlist)
3838

39-
see http://pytest.org/en/latest/usage.html for details.
39+
see http://pytest.org/en/stable/usage.html for details.
4040

4141
- new and better reporting information in assert expressions
4242
if comparing lists, sequences or strings.
4343

44-
see http://pytest.org/en/latest/assert.html#newreport
44+
see http://pytest.org/en/stable/assert.html#newreport
4545

4646
- new configuration through ini-files (setup.cfg or tox.ini recognized),
4747
for example::
@@ -50,7 +50,7 @@ New Features
5050
norecursedirs = .hg data* # don't ever recurse in such dirs
5151
addopts = -x --pyargs # add these command line options by default
5252

53-
see http://pytest.org/en/latest/customize.html
53+
see http://pytest.org/en/stable/customize.html
5454

5555
- improved standard unittest support. In general py.test should now
5656
better be able to run custom unittest.TestCases like twisted trial

doc/en/announce/release-2.0.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Changes between 2.0.0 and 2.0.1
5757
- refinements to "collecting" output on non-ttys
5858
- refine internal plugin registration and --traceconfig output
5959
- introduce a mechanism to prevent/unregister plugins from the
60-
command line, see http://pytest.org/en/latest/plugins.html#cmdunregister
60+
command line, see http://pytest.org/en/stable/plugins.html#cmdunregister
6161
- activate resultlog plugin by default
6262
- fix regression wrt yielded tests which due to the
6363
collection-before-running semantics were not

doc/en/announce/release-2.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ courtesy of Benjamin Peterson. You can now safely use ``assert``
1212
statements in test modules without having to worry about side effects
1313
or python optimization ("-OO") options. This is achieved by rewriting
1414
assert statements in test modules upon import, using a PEP302 hook.
15-
See https://docs.pytest.org/en/latest/assert.html for
15+
See https://docs.pytest.org/en/stable/assert.html for
1616
detailed information. The work has been partly sponsored by my company,
1717
merlinux GmbH.
1818

doc/en/announce/release-2.2.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with these improvements:
99

1010
- new @pytest.mark.parametrize decorator to run tests with different arguments
1111
- new metafunc.parametrize() API for parametrizing arguments independently
12-
- see examples at http://pytest.org/en/latest/example/parametrize.html
12+
- see examples at http://pytest.org/en/stable/example/parametrize.html
1313
- NOTE that parametrize() related APIs are still a bit experimental
1414
and might change in future releases.
1515

@@ -18,7 +18,7 @@ with these improvements:
1818
- "-m markexpr" option for selecting tests according to their mark
1919
- a new "markers" ini-variable for registering test markers for your project
2020
- the new "--strict" bails out with an error if using unregistered markers.
21-
- see examples at http://pytest.org/en/latest/example/markers.html
21+
- see examples at http://pytest.org/en/stable/example/markers.html
2222

2323
* duration profiling: new "--duration=N" option showing the N slowest test
2424
execution or setup/teardown calls. This is most useful if you want to
@@ -78,7 +78,7 @@ Changes between 2.1.3 and 2.2.0
7878
or through plugin hooks. Also introduce a "--strict" option which
7979
will treat unregistered markers as errors
8080
allowing to avoid typos and maintain a well described set of markers
81-
for your test suite. See examples at http://pytest.org/en/latest/mark.html
81+
for your test suite. See examples at http://pytest.org/en/stable/mark.html
8282
and its links.
8383
- issue50: introduce "-m marker" option to select tests based on markers
8484
(this is a stricter and more predictable version of "-k" in that "-m"

doc/en/announce/release-2.3.0.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ re-usable fixture design.
1313

1414
For detailed info and tutorial-style examples, see:
1515

16-
http://pytest.org/en/latest/fixture.html
16+
http://pytest.org/en/stable/fixture.html
1717

1818
Moreover, there is now support for using pytest fixtures/funcargs with
1919
unittest-style suites, see here for examples:
2020

21-
http://pytest.org/en/latest/unittest.html
21+
http://pytest.org/en/stable/unittest.html
2222

2323
Besides, more unittest-test suites are now expected to "simply work"
2424
with pytest.
@@ -29,11 +29,11 @@ pytest-2.2.4.
2929

3030
If you are interested in the precise reasoning (including examples) of the
3131
pytest-2.3 fixture evolution, please consult
32-
http://pytest.org/en/latest/funcarg_compare.html
32+
http://pytest.org/en/stable/funcarg_compare.html
3333

3434
For general info on installation and getting started:
3535

36-
http://pytest.org/en/latest/getting-started.html
36+
http://pytest.org/en/stable/getting-started.html
3737

3838
Docs and PDF access as usual at:
3939

@@ -94,7 +94,7 @@ Changes between 2.2.4 and 2.3.0
9494
- pluginmanager.register(...) now raises ValueError if the
9595
plugin has been already registered or the name is taken
9696

97-
- fix issue159: improve http://pytest.org/en/latest/faq.html
97+
- fix issue159: improve http://pytest.org/en/stable/faq.html
9898
especially with respect to the "magic" history, also mention
9999
pytest-django, trial and unittest integration.
100100

doc/en/announce/release-2.3.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ comes with the following fixes and features:
1616
- yielded test functions will now have autouse-fixtures active but
1717
cannot accept fixtures as funcargs - it's anyway recommended to
1818
rather use the post-2.0 parametrize features instead of yield, see:
19-
http://pytest.org/en/latest/example/parametrize.html
19+
http://pytest.org/en/stable/example/parametrize.html
2020
- fix autouse-issue where autouse-fixtures would not be discovered
2121
if defined in an a/conftest.py file and tests in a/tests/test_some.py
2222
- fix issue226 - LIFO ordering for fixture teardowns

doc/en/announce/release-2.4.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from a few supposedly very minor incompatibilities. See below for
77
a full list of details. A few feature highlights:
88

99
- new yield-style fixtures `pytest.yield_fixture
10-
<http://pytest.org/en/latest/yieldfixture.html>`_, allowing to use
10+
<http://pytest.org/en/stable/yieldfixture.html>`_, allowing to use
1111
existing with-style context managers in fixture functions.
1212

1313
- improved pdb support: ``import pdb ; pdb.set_trace()`` now works

0 commit comments

Comments
 (0)