From e43e499392c177b6d96c05f1789ffb78e6a4d4c8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 19 Sep 2023 10:55:41 +0100 Subject: [PATCH] Show shift() in example --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index 265464c..755325c 100644 --- a/README.rst +++ b/README.rst @@ -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