You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Freezegun doesn't affect time.strptime, which still returns the current time. I know you don't claim to affect this method in the README, but it might but helpful to others if you could mention explicitly that you don't:
import unittest
import time
from freezegun import freeze_time
class TestStrptime(unittest.TestCase):
@freeze_time("2012-01-14 12:00:01")
def test_strptime(self):
self.assertEquals(time.strftime("%Y"), "2012")
The text was updated successfully, but these errors were encountered:
Freezegun doesn't affect time.strptime, which still returns the current time. I know you don't claim to affect this method in the README, but it might but helpful to others if you could mention explicitly that you don't:
The text was updated successfully, but these errors were encountered: