def setUpClass(cls): httpretty.enable() datatable_data = {'datatable': DatatableDataFactory.build()} meta = {'meta': DatatableMetaFactory.build()} datatable_data.update(meta) httpretty.register_uri(httpretty.GET, re.compile( 'https://www.quandl.com/api/v3/datatables/*'), body=json.dumps(datatable_data)) cls.expected_raw_data = [] cls.expected_list_values = []
def setUpClass(cls): httpretty.enable() datatable_data = {'datatable': DatatableDataFactory.build()} meta = {'meta': DatatableMetaFactory.build()} datatable_data.update(meta) httpretty.register_uri( httpretty.GET, re.compile('https://www.quandl.com/api/v3/datatables/*'), body=json.dumps(datatable_data)) cls.expected_raw_data = [] cls.expected_list_values = []
def setUpClass(cls): httpretty.enable() datatable = {'datatable': DatatableFactory.build( vendor_code='ZACKS', datatable_code='FC')} data = DatatableDataFactory.build() datatable['datatable'].update(data) meta = {'meta': DatatableMetaFactory.build()} datatable.update(meta) httpretty.register_uri(httpretty.GET, re.compile( 'https://www.quandl.com/api/v3/datatables*'), body=json.dumps(datatable)) cls.datatable_instance = Datatable(datatable['datatable'])
def setUpClass(cls): httpretty.enable() datatable = { 'datatable': DatatableFactory.build(vendor_code='ZACKS', datatable_code='FC') } data = DatatableDataFactory.build() datatable['datatable'].update(data) meta = {'meta': DatatableMetaFactory.build()} datatable.update(meta) httpretty.register_uri( httpretty.GET, re.compile('https://www.quandl.com/api/v3/datatables*'), body=json.dumps(datatable)) cls.datatable_instance = Datatable(datatable['datatable'])