Last active
December 16, 2015 01:39
-
-
Save PuercoPop/5357159 to your computer and use it in GitHub Desktop.
Test case for py.test and freeze gun
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import sys | |
import pytest | |
import datetime | |
from freezegun.api import FakeDate, FakeDatetime | |
real_date = datetime.date | |
real_datetime = datetime.datetime | |
modules = sys.modules.values() | |
for module in modules: | |
print module | |
print dir(module) | |
print module.__name__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment