File: test_basics.py

package info (click to toggle)
python-time-machine 2.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 212 kB
  • sloc: python: 398; ansic: 390; makefile: 3
file content (6 lines) | stat: -rw-r--r-- 143 bytes parent folder | download
1
2
3
4
5
6
import datetime
import time_machine

@time_machine.travel("1980-02-03 10:00")
def test_basics():
    assert datetime.date.today().year == 1980