Skip to content

Commit

Permalink
[IMP] Fix Travis Redlight
Browse files Browse the repository at this point in the history
  • Loading branch information
osi-scampbell committed Jan 7, 2020
1 parent 5a16550 commit 5e636dc
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 5e636dc

Please sign in to comment.