Skip to content

Commit

Permalink
Show shift() in example
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Sep 19, 2023
1 parent 6c5694a commit e43e499
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ For example:
assert dt.date.today().isoformat() == "2015-10-21"
time_machine.shift(dt.timedelta(days=1))
assert dt.date.today().isoformat() == "2015-10-22"
If you are using pytest test classes, you can apply the fixture to all test methods in a class by adding an autouse fixture:

.. code-block:: python
Expand Down

0 comments on commit e43e499

Please sign in to comment.