Created
January 8, 2017 08:48
-
-
Save laike9m/b837bcca3325d0197e8cd799dba5eb28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test.py | |
with freeze_time(datetime.datetime(2016, 2, 10, tzinfo=pytz.timezone('US/Pacific'))): | |
from mymodule import date_manager | |
# mymodule.py | |
class _DateManager(object): | |
def __init__(self): | |
self._today = datetime.datetime.now(pytz.timezone('US/Pacific')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment