diff options
author | Joffrey F <joffrey@docker.com> | 2016-04-05 12:52:22 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-04-05 14:52:26 -0700 |
commit | 5885e6235473b6622a66adf435fdff589570fc17 (patch) | |
tree | 24baa9d6801fb32e2527310335360bc26f2fd71c /tests/unit/auth_test.py | |
parent | e743254b42080e6d199fc10f4812a42ecb8d536f (diff) | |
download | docker-py-1021-empty-auth.tar.gz |
Don't raise InvalidConfigError when auth dict doesn't have an 'auth' key1021-empty-auth
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/unit/auth_test.py')
-rw-r--r-- | tests/unit/auth_test.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py index 921aae0..4ea4047 100644 --- a/tests/unit/auth_test.py +++ b/tests/unit/auth_test.py @@ -459,6 +459,5 @@ class LoadConfigTest(base.Cleanup, base.BaseTestCase): with open(dockercfg_path, 'w') as f: json.dump(config, f) - self.assertRaises( - errors.InvalidConfigFile, auth.load_config, dockercfg_path - ) + cfg = auth.load_config(dockercfg_path) + assert cfg == {} |