From c566fa1c8fb7f67d25793d3623a3539b2ea92a4f Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 20 Oct 2021 12:16:18 -0400 Subject: [PATCH] Fixed test to look for datetime object --- tests/scripts/test_get_localtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/test_get_localtime.py b/tests/scripts/test_get_localtime.py index 7e5b489b..4abac7ea 100644 --- a/tests/scripts/test_get_localtime.py +++ b/tests/scripts/test_get_localtime.py @@ -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))