1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-10-08 23:22:21 +02:00

update tests to set correct timezone on POSIX systems

This commit is contained in:
Kelly Brazil
2021-07-07 08:53:52 -07:00
parent 2c6f3993cb
commit f10ebea209
11 changed files with 78 additions and 0 deletions

View File

@@ -1,10 +1,17 @@
import os
import sys
import time
import json
import unittest
import jc.parsers.date
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# Set the timezone on POSIX systems. Need to manually set for Windows tests
if not sys.platform.startswith('win32'):
os.environ['TZ'] = 'America/Los_Angeles'
time.tzset()
class MyTests(unittest.TestCase):