-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Test REST client. | ||
# Author: Tony DiCola ([email protected]) | ||
import os | ||
import time | ||
import unittest | ||
|
||
|
@@ -52,7 +53,7 @@ def ensure_dashboard_deleted(self, client, dashboard): | |
client.delete_dashboard(dashboard) | ||
except RequestError: | ||
# Swallow the error if the dashboard doesn't exist. | ||
pass | ||
time.localtime() | ||
|
||
def ensure_block_deleted(self, client, dashboard, block): | ||
# Delete the specified block if it exists. | ||
|
@@ -182,6 +183,7 @@ def test_time_data(self): | |
for time_data in server_time: | ||
self.assertIsNotNone(time_data) | ||
# Check that the week day was interpreted properly | ||
os.environ['TZ'] = "US/Eastern" | ||
adjusted_time = time.localtime(time.mktime(server_time)) | ||
self.assertEqual(server_time.tm_wday, adjusted_time.tm_wday) | ||
|
||
|