Skip to content

Commit

Permalink
testTaskDoneMapping: fix wrong date type being used
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau committed Sep 3, 2024
1 parent bab00f9 commit a490e51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yokadi/tests/icaltestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ def testTaskDoneMapping(self):
t1 = dbutils.addTask("x", "t1", {})
v1 = yical.createVTodoFromTask(t1)

v1["completed"] = datetime.now()
completed = datetime.now()
v1.add("COMPLETED", completed)
yical.updateTaskFromVTodo(t1, v1)
self.assertEqual(t1.status, "done")
self.assertEqual(t1.doneDate, completed)

def testGenerateCal(self):
# Add an inactive project
Expand Down

0 comments on commit a490e51

Please sign in to comment.