test: fix test broken by todo schema change
This commit is contained in:
parent
11cfa16158
commit
e73c51bee6
@ -78,11 +78,11 @@ class TestTask(unittest.TestCase):
|
||||
return frappe.db.get_value("ToDo",
|
||||
filters={"reference_type": task.doctype, "reference_name": task.name,
|
||||
"description": "Close this task"},
|
||||
fieldname=("owner", "status"), as_dict=True)
|
||||
fieldname=("allocated_to", "status"), as_dict=True)
|
||||
|
||||
assign()
|
||||
todo = get_owner_and_status()
|
||||
self.assertEqual(todo.owner, "test@example.com")
|
||||
self.assertEqual(todo.allocated_to, "test@example.com")
|
||||
self.assertEqual(todo.status, "Open")
|
||||
|
||||
# assignment should be
|
||||
@ -90,7 +90,7 @@ class TestTask(unittest.TestCase):
|
||||
task.status = "Completed"
|
||||
task.save()
|
||||
todo = get_owner_and_status()
|
||||
self.assertEqual(todo.owner, "test@example.com")
|
||||
self.assertEqual(todo.allocated_to, "test@example.com")
|
||||
self.assertEqual(todo.status, "Closed")
|
||||
|
||||
def test_overdue(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user