Exemplo n.º 1
0
 def setUp(self):
     self.api = API(mode='test', auto_login=False)
     url = '{}?id={}&from_date={}&to_date={}'.format(
         self.get_api_url('API/getCustomReport'),
         'ABCDEF',
         '2016-01-01',
         '2016-01-05')
     # Use the standard funding file response, any CSV could go here
     responses.add(
         responses.GET, url,
         body=self.load_xml_response('200_funding.csv'),
         status=200, content_type='text/plain',
         match_querystring=True)
     self.report = CustomReport(
         'ABCDEF', self.api, from_date='2016-01-01', to_date='2016-01-05')