Skip to content

Commit 30e3fc9

Browse files
committed
Update
1 parent be9c998 commit 30e3fc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_client.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Test REST client.
22
# Author: Tony DiCola ([email protected])
33
import time
4+
import datetime
5+
import os
46
import unittest
57

68
from Adafruit_IO import Client, Data, Feed, Group, Dashboard, Block, Layout, RequestError
@@ -52,7 +54,7 @@ def ensure_dashboard_deleted(self, client, dashboard):
5254
client.delete_dashboard(dashboard)
5355
except RequestError:
5456
# Swallow the error if the dashboard doesn't exist.
55-
pass
57+
time.localtime()
5658

5759
def ensure_block_deleted(self, client, dashboard, block):
5860
# Delete the specified block if it exists.
@@ -184,6 +186,7 @@ def test_time_data(self):
184186
# Check that the week day was interpreted properly
185187
print(server_time)
186188
print(server_time.tm_zone)
189+
os.environ['TZ'] = "US/Eastern"
187190
extra = time.localtime()
188191
print(extra)
189192
print(extra.tm_zone)

0 commit comments

Comments
 (0)