Fixed test to look for datetime object

This commit is contained in:
mike cullerton 2021-10-20 12:16:18 -04:00
parent 7d48fa6b31
commit c566fa1c8f
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from tests.base_test import BaseTest
from crc.scripts.get_localtime import GetLocaltime
import dateparser
class TestGetLocaltime(BaseTest):
@ -14,4 +15,4 @@ class TestGetLocaltime(BaseTest):
timestamp = task.data['timestamp']
localtime = task.data['localtime']
self.assertEqual(localtime, GetLocaltime().do_task(None, None, None, timestamp=timestamp))
self.assertEqual(dateparser.parse(localtime), GetLocaltime().do_task(None, None, None, timestamp=timestamp))