diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2015-04-13 16:47:49 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2015-04-15 22:40:52 -0500 |
| commit | f43c1f76559ae8b5b738b7ae8b69b15c379f9145 (patch) | |
| tree | 0312547c04ebfc6ae09119b734945e6bbfcbb651 /openstackclient/tests/common | |
| parent | e60bf28ae3bdb34b65316249f0e7615048aa1f95 (diff) | |
| download | python-openstackclient-f43c1f76559ae8b5b738b7ae8b69b15c379f9145.tar.gz | |
Defer client imports
So we really weren't deferring the loading of client libs dadgummit,
do that for real where possible. This shaves a couple of tenths off
the static import times.
Also defer as much import-time procesing as possible. This is a little
ugly in api.auth but this also eliminates import of the auth plugins
until they are needed.
Change-Id: Ia11d4b9cf98231d37449103fc29101dc17afb009
Diffstat (limited to 'openstackclient/tests/common')
| -rw-r--r-- | openstackclient/tests/common/test_clientmanager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openstackclient/tests/common/test_clientmanager.py b/openstackclient/tests/common/test_clientmanager.py index 3648bf57..7a2f57be 100644 --- a/openstackclient/tests/common/test_clientmanager.py +++ b/openstackclient/tests/common/test_clientmanager.py @@ -34,6 +34,10 @@ AUTH_REF.update(fakes.TEST_RESPONSE_DICT['access']) SERVICE_CATALOG = service_catalog.ServiceCatalogV2(AUTH_REF) +# This is deferred in api.auth but we need it here... +auth.get_options_list() + + class Container(object): attr = clientmanager.ClientCache(lambda x: object()) |
