Skip to content

Commit 828fde1

Browse files
authored
Merge pull request #8858 from The-Compiler/update-doc-urls
2 parents d71d31c + 51f645e commit 828fde1

33 files changed

+85
-83
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Here is a simple overview, with pytest-specific bits:
324324
Writing Tests
325325
~~~~~~~~~~~~~
326326

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

329329
For example, to ensure a simple test passes you can write:
330330

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` stat
7979
Features
8080
--------
8181

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

8484
- `Auto-discovery
85-
<https://docs.pytest.org/en/stable/goodpractices.html#python-test-discovery>`_
85+
<https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>`_
8686
of test modules and functions
8787

88-
- `Modular fixtures <https://docs.pytest.org/en/stable/fixture.html>`_ for
88+
- `Modular fixtures <https://docs.pytest.org/en/stable/explanation/fixtures.html>`_ for
8989
managing small or parametrized long-lived test resources
9090

91-
- Can run `unittest <https://docs.pytest.org/en/stable/unittest.html>`_ (or trial),
92-
`nose <https://docs.pytest.org/en/stable/nose.html>`_ test suites out of the box
91+
- Can run `unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>`_ (or trial),
92+
`nose <https://docs.pytest.org/en/stable/how-to/nose.html>`_ test suites out of the box
9393

9494
- Python 3.6+ and PyPy3
9595

doc/en/announce/release-2.0.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ New Features
3636

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

39-
see http://pytest.org/en/stable/usage.html for details.
39+
see http://pytest.org/en/stable/how-to/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/stable/assert.html#newreport
44+
see http://pytest.org/en/stable/how-to/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/stable/customize.html
53+
see http://pytest.org/en/stable/reference/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/stable/plugins.html#cmdunregister
60+
command line, see http://pytest.org/en/stable/how-to/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/stable/assert.html for
15+
See https://docs.pytest.org/en/stable/how-to/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: 2 additions & 2 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/stable/example/parametrize.html
12+
- see examples at http://pytest.org/en/stable/example/how-to/parametrize.html
1313
- NOTE that parametrize() related APIs are still a bit experimental
1414
and might change in future releases.
1515

@@ -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/stable/mark.html
81+
for your test suite. See examples at http://pytest.org/en/stable/how-to/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: 2 additions & 2 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/stable/fixture.html
16+
http://pytest.org/en/stable/explanation/fixtures.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/stable/unittest.html
21+
http://pytest.org/en/stable/how-to/unittest.html
2222

2323
Besides, more unittest-test suites are now expected to "simply work"
2424
with pytest.

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/stable/example/parametrize.html
19+
http://pytest.org/en/stable/example/how-to/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.9.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The py.test Development Team
131131
with same name.
132132

133133

134-
.. _`traceback style docs`: https://pytest.org/en/stable/usage.html#modifying-python-traceback-printing
134+
.. _`traceback style docs`: https://pytest.org/en/stable/how-to/output.html#modifying-python-traceback-printing
135135

136136
.. _#1422: https://github.com/pytest-dev/pytest/issues/1422
137137
.. _#1379: https://github.com/pytest-dev/pytest/issues/1379

doc/en/builtin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
144144
recwarn
145145
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
146146
147-
See https://docs.python.org/library/warnings.html for information
147+
See https://docs.python.org/library/how-to/capture-warnings.html for information
148148
on warning categories.
149149
150150
tmpdir_factory [session scope]

0 commit comments

Comments
 (0)