Skip to content

Commit

Permalink
[FIX]Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Freni-OSI committed Oct 20, 2022
1 parent f31a979 commit c1da31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fieldservice_calendar/tests/test_fsm_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def test_fsm_order_no_calendar_user(self):
"scheduled_duration": 2,
}
)
new.location_id = self.location_1.id
evt = new.calendar_event_id
self.assertFalse(evt.exists())
self.team.calendar_user_id = self.env.ref("base.partner_root").id

# update order
new.write({"scheduled_duration": 3})
new.write({"location_id": self.location_1.id})
evt = new.calendar_event_id
self.assertTrue(evt.exists())
evt.with_context(recurse_order_calendar=False).write({"duration": 5})
Expand Down

0 comments on commit c1da31e

Please sign in to comment.