Skip to content

Commit bb069cf

Browse files
committed
Fix broken links in README
Fix #129
1 parent e14f305 commit bb069cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Usage
5858
=====
5959

6060
The ``mocker`` fixture has the same API as
61-
`mock.patch <http://www.voidspace.org.uk/python/mock/patch.html#patch-decorators>`_,
61+
`mock.patch <https://docs.python.org/3/library/unittest.mock.html#patch>`_,
6262
supporting the same arguments:
6363

6464
.. code-block:: python
@@ -71,14 +71,14 @@ supporting the same arguments:
7171
7272
The supported methods are:
7373

74-
* ``mocker.patch``: see http://www.voidspace.org.uk/python/mock/patch.html#patch.
75-
* ``mocker.patch.object``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-object.
76-
* ``mocker.patch.multiple``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-multiple.
77-
* ``mocker.patch.dict``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-dict.
78-
* ``mocker.stopall()``: stops all active patches up to this point.
79-
* ``mocker.resetall()``: calls ``reset_mock()`` in all mocked objects up to this point.
74+
* `mocker.patch <https://docs.python.org/3/library/unittest.mock.html#patch>`_
75+
* `mocker.patch.object <https://docs.python.org/3/library/unittest.mock.html#patch-object>`_
76+
* `mocker.patch.multiple <https://docs.python.org/3/library/unittest.mock.html#patch-multiple>`_
77+
* `mocker.patch.dict <https://docs.python.org/3/library/unittest.mock.html#patch-dict>`_
78+
* `mocker.stopall <https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch.stopall>`_
79+
* ``mocker.resetall()``: calls `reset_mock() <https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.reset_mock>`_ in all mocked objects up to this point.
8080

81-
Some objects from the ``mock`` module are accessible directly from ``mocker`` for convenience:
81+
These objects from the ``mock`` module are accessible directly from ``mocker`` for convenience:
8282

8383
* `Mock <https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock>`_
8484
* `MagicMock <https://docs.python.org/3/library/unittest.mock.html#unittest.mock.MagicMock>`_

0 commit comments

Comments
 (0)