bemade_fsm: fixed tests on propagate assignment due to new default.

This commit is contained in:
Marc Durepos 2023-12-19 19:09:47 -05:00
parent 6d167a4cc1
commit 92c6c81807

View file

@ -17,7 +17,8 @@ class TaskTest(BemadeFSMBaseTest):
task = sol.task_id
task.write({
'user_ids': [Command.set([user.id])]
'user_ids': [Command.set([user.id])],
'propagate_assignment': True,
})
self.assertTrue(all([t.user_ids == user for t in task | task._get_all_subtasks()]))
@ -33,7 +34,8 @@ class TaskTest(BemadeFSMBaseTest):
task.child_ids.write({'propagate_assignment': False}) # Stop propagation after the first level
task.write({
'user_ids': [Command.set([user.id])]
'user_ids': [Command.set([user.id])],
'propagate_assignment': True,
})
self.assertTrue(all([t.user_ids == user for t in task | task.child_ids]))