Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-08-30 | url_helper: dynamically import oauthlib import from inside oauth_headers | Chad Smith | |
oauth_headers is the only function which requires oauthlib, move the import and ImportError handling inside this function to only attempt loading at runtime if called. This will allow us to build on platforms that don't have python-oauthlib installed by default. Add simple unittests around the missing oauthlib dependencies to make sure the function performs as intended and raises and NotImplementedError if oauthlib can't be imported. |