From: Tomas Babej Date: Fri, 6 Feb 2015 19:55:57 +0000 (+0100) Subject: Tests: Update tests for localized timestamps X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/aa96b5703ca8df1df113ac165b0d756c03517435?ds=inline Tests: Update tests for localized timestamps --- diff --git a/tasklib/tests.py b/tasklib/tests.py index 3a3f25d..eb19948 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -3,6 +3,7 @@ import datetime import itertools import json +import pytz import six import shutil import tempfile @@ -532,7 +533,8 @@ class TaskFromHookTest(TasklibTest): def test_export_data(self): t = Task(self.tw, description="test task", - project="Home", due=datetime.datetime(2015,1,1,23,23,23)) + project="Home", + due=pytz.utc.localize(datetime.datetime(2015,1,1,23,23,23))) # Check that the output is a permutation of: # {"project":"Home","description":"test task","due":"20150101232323Z"}