Skip to content

Commit

Permalink
fix docs for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Jun 24, 2023
1 parent 18a8351 commit 016ee0e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The ``instant_sleep`` fixture is the most basic wrapper and is designed to be us
A basic use of ``instant_sleep`` is shown below:

.. code:: python
:number-lines:
import time
import pytest
Expand Down Expand Up @@ -81,7 +80,6 @@ Recording Time Calls
Pytest-time also provides ``mock_time``, a fixture that wraps several ``time`` functions in Mock objects but still runs the real calls. This is useful if you need to ensure that certain calls occurred, etc. The fixture will provide Mock objects for inspection in tests:

.. code:: python
:number-lines:
import time
Expand All @@ -101,10 +99,9 @@ Pytest-time also provides ``mock_time``, a fixture that wraps several ``time`` f
Mocking a Powernap
~~~~~~~~~~~~~~~~~~

The two above are combined for you in the ``mock_instant_sleep`` fixture. This fixture replaces the relevant ``time`` functions as in the ```instant_sleep`` fixture, but also provides mock wrappers around those functions, allowing for recording time.
The two above are combined for you in the ``mock_instant_sleep`` fixture. This fixture replaces the relevant ``time`` functions as in the ``instant_sleep`` fixture, but also provides mock wrappers around those functions, allowing for recording time.

.. code:: python
:number-lines:
import time
Expand Down

0 comments on commit 016ee0e

Please sign in to comment.