We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 250fae2 commit 4940af1Copy full SHA for 4940af1
tests/test_client.py
@@ -1,5 +1,6 @@
1
# Test REST client.
2
# Author: Tony DiCola ([email protected])
3
+import os
4
import time
5
import unittest
6
@@ -182,6 +183,7 @@ def test_time_data(self):
182
183
for time_data in server_time:
184
self.assertIsNotNone(time_data)
185
# Check that the week day was interpreted properly
186
+ os.environ['TZ'] = "US/Eastern"
187
adjusted_time = time.localtime(time.mktime(server_time))
188
self.assertEqual(server_time.tm_wday, adjusted_time.tm_wday)
189
0 commit comments