quandl / quandl-python

MIT License
1.36k stars 336 forks source link

Test table? #156

Closed max-sixty closed 3 years ago

max-sixty commented 4 years ago

We have code which uses export_table, and we have some tests which ensure the code works. Would it be possible to provision a small datatable that people could use in these tests?

We're currently using the smallest table we have a subscription for, and it looks like this repo internally use Zacks for its tests. That involves pulling a decent amount of data from Quandl, which is inefficient for Quandl and causes our tests to run slowly.

Thanks!

A-Scott-Rowe commented 3 years ago

Hi @max-sixty,

You could possibly use SHARADAR/INDICATORS. However this will count towards your daily rate limits. It is generally advised to mock the responses you are getting from us in your tests. We use a package called httpretty to mock out our calls to the api. You can see an example here of how we are using it to mock the response from the export feature.

max-sixty commented 3 years ago

Perfect, this is great, thanks!