anonymous / gist:4261936
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

freeze_time fails this assertion

View gist:4261936
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.