diff options
author | Chad Smith <chad.smith@canonical.com> | 2017-08-29 10:32:38 -0600 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-08-30 15:41:17 -0400 |
commit | b931a6473ee929193c0048640bf34876ce831a15 (patch) | |
tree | 319c9bdb5f5d109c24a338cca168e8f1c92e12ab /cloudinit/tests/__init__.py | |
parent | 502082f6f21fb7592a798087a4c49f90d886ad14 (diff) | |
download | vyos-cloud-init-b931a6473ee929193c0048640bf34876ce831a15.tar.gz vyos-cloud-init-b931a6473ee929193c0048640bf34876ce831a15.zip |
url_helper: dynamically import oauthlib import from inside oauth_headers
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.
Diffstat (limited to 'cloudinit/tests/__init__.py')
-rw-r--r-- | cloudinit/tests/__init__.py | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/cloudinit/tests/__init__.py b/cloudinit/tests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/cloudinit/tests/__init__.py |