public
anonymous / gist:4261936
Created

freeze_time fails this assertion

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9
from freezegun import freeze_time
from datetime import datetime
 
@freeze_time("2012-01-14")
def test():
assert datetime.now() == datetime(2012, 01, 14)
 
if __name__ == "__main__":
test()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.