Add more terms highlighting and refs
@@ -1230,7 +1230,7 @@ Let's revisit :ref:`Tutorial 2 <tut02>`.
if __name__ == '__main__':
cherrypy.quickstart(StringGenerator())
-Save this into a file named `tut12.py`.
+Save this into a file named ``tut12.py``.
Now make the test file:
@@ -1254,7 +1254,7 @@ Now make the test file:
self.getPage("/generate")
self.assertStatus('200 OK')
-Save this into a file named 'test_tut12.py' and run
+Save this into a file named ``test_tut12.py`` and run
.. code-block:: bash
@@ -1262,7 +1262,7 @@ Save this into a file named 'test_tut12.py' and run
.. note::
- If you don't have pytest installed, you'll need to install it by ``pip install pytest``
+ If you don't have `pytest <https://pytest.org>`_ installed, you'll need to install it by ``pip install pytest``
We now have a neat way that we can exercise our application making tests.
@@ -1277,10 +1277,10 @@ To get code coverage, simply run
.. note::
- To add coverage support to pytest, you'll need to install it by ``pip install pytest-cov``
+ To `add coverage support to pytest <https://pytest-cov.rtfd.io>`_, you'll need to install it by ``pip install pytest-cov``
This tells us that one line is missing. Of course it is because that is only executed when
-the python program is started directly. We can simply change the following lines in tut12.py:
+the python program is started directly. We can simply change the following lines in ``tut12.py``:
.. code-block:: python
:lineno-start: 17
