Skip to content

Commit 00ebb59

Browse files
author
kuyan
committed
Use :mod: tag for modules
1 parent ef998ac commit 00ebb59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/writing/tests.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Some general rules of testing:
1616
alone, and also within the test suite, regardless of the order they are called.
1717
The implication of this rule is that each test must be loaded with a fresh
1818
dataset and may have to do some cleanup afterwards. This is usually
19-
handled by ``setUp()`` and ``tearDown()`` methods.
19+
handled by :meth:`setUp()` and :meth:`tearDown()` methods.
2020

2121
- Try hard to make tests that run fast. If one single test needs more than a
2222
few millisecond to run, development will be slowed down or the tests will not
@@ -75,11 +75,11 @@ The Basics
7575
Unittest
7676
--------
7777

78-
Unittest is the batteries-included test module in the Python standard library.
78+
:mod:`unittest` is the batteries-included test module in the Python standard library.
7979
Its API will be familiar to anyone who has used any of the JUnit/nUnit/CppUnit
8080
series of tools.
8181

82-
Creating testcases is accomplished by subclassing a TestCase base class
82+
Creating testcases is accomplished by subclassing a :class:`TestCase` base class
8383

8484
.. code-block:: python
8585
@@ -100,7 +100,7 @@ As of Python 2.7 unittest also includes its own test discovery mechanisms.
100100
Doctest
101101
-------
102102

103-
The doctest module searches for pieces of text that look like interactive
103+
The :mod:`doctest` module searches for pieces of text that look like interactive
104104
Python sessions in docstrings, and then executes those sessions to verify that
105105
they work exactly as shown.
106106

0 commit comments

Comments
 (0)