From aa96b5703ca8df1df113ac165b0d756c03517435 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 6 Feb 2015 20:55:57 +0100 Subject: [PATCH] Tests: Update tests for localized timestamps --- tasklib/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"} -- 2.39.5