Exemple #1
0
 def on_get(self, req, resp, tenant_id):
     schedules_list = [
         s.as_dict() for s in Schedule.get_schedules(tenant_id)
     ]
     resp.body = self.format_response_body({'schedules': schedules_list})
Exemple #2
0
 def can_get_schedules(self):
     schedules = Schedule.get_schedules(self.tenant_id)
     expect(len(schedules)).to.equal(1)
     expect(schedules[0].as_dict()).to.equal(example_schedule_dict)
Exemple #3
0
 def on_get(self, req, resp, tenant_id):
     schedules_list = [
         s.as_dict() for s in Schedule.get_schedules(tenant_id)
     ]
     resp.body = self.format_response_body({'schedules': schedules_list})
Exemple #4
0
 def can_get_schedules(self):
     schedules = Schedule.get_schedules(self.tenant_id)
     expect(len(schedules)).to.equal(1)
     expect(schedules[0].as_dict()).to.equal(example_schedule_dict)