Skip to content

Commit

Permalink
Merge pull request #23 from ursais/12.0-imp-fsm_route_tests
Browse files Browse the repository at this point in the history
[IMP] Fix Travis Redlight
  • Loading branch information
Maxime Chambreuil authored Jan 7, 2020
2 parents 5a16550 + 5e636dc commit 86e971a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion fieldservice_route/tests/test_fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ def setUp(self):
self.fsm_route_obj = self.env['fsm.route']
self.test_person = self.env.ref("fieldservice.test_person")
self.test_location = self.env.ref("fieldservice.test_location")
self.date = datetime.now()
self.days = [
self.env.ref('fieldservice_route.fsm_route_day_sunday').id,
self.env.ref('fieldservice_route.fsm_route_day_monday').id,
self.env.ref('fieldservice_route.fsm_route_day_tuesday').id,
self.env.ref('fieldservice_route.fsm_route_day_wednesday').id,
self.env.ref('fieldservice_route.fsm_route_day_thursday').id,
self.env.ref('fieldservice_route.fsm_route_day_friday').id,
self.env.ref('fieldservice_route.fsm_route_day_saturday').id
]
self.fsm_route_id = self.fsm_route_obj.create(
{
'name': 'Demo Route',
'fsm_person_id': self.test_person.id,
'day_ids': [(6, 0, self.days)]
})
self.test_location.fsm_route_id = self.fsm_route_id.id
self.date = datetime.now()

def test_create_day_route(self):
order = self.fsm_order_obj.create({'location_id':
Expand Down

0 comments on commit 86e971a

Please sign in to comment.