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().
Coverage increased (+0.01%) to 97.06% when pulling 1f81002e8eb0b1b8c498999476f5e2ee03f5db77 on janakmayer:master into e26dcff788c9a62157f4678bb750a73d140b090f on cloudant-labs:master.
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().