cloudant-labs / cloudant-python

Asynchronous Cloudant / CouchDB interface for Python
http://cloudant-labs.github.io/cloudant-python/
37 stars 17 forks source link

Fixed ability to use database.all_docs() method when using API key auth #53

Open janakmayer opened 9 years ago

janakmayer commented 9 years ago

Since .all_docs() previously did not pass self.opts in kwargs, using this method when using API key authorization resulted in an authorization error. There is undoubtedly a better, more universal way to fix this problem (as for instance _make_request() does in the base Resource class for all standard HTTP verb requests), but for the moment this works, and is consistent with the treatment in database.document().

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.01%) to 97.06% when pulling 1f81002e8eb0b1b8c498999476f5e2ee03f5db77 on janakmayer:master into e26dcff788c9a62157f4678bb750a73d140b090f on cloudant-labs:master.