Fixed test to look for datetime object
This commit is contained in:
parent
7d48fa6b31
commit
c566fa1c8f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue