summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2019-01-09 16:18:21 -0800
committerJoffrey F <joffrey@docker.com>2019-04-30 23:37:55 -0700
commita823acc2cae10c4635db2fb963cc37d8a23cc0c4 (patch)
tree6792cf991f7837a62f2ff2ca9c0f1ca6e451dabe /tests/unit
parent41e1c054268104df1412f413245dc4b12951143e (diff)
downloaddocker-py-a823acc2cae10c4635db2fb963cc37d8a23cc0c4.tar.gz
Make dockerpycreds part of the SDK under docker.credentials
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/auth_test.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py
index dc4d6f5..d46da50 100644
--- a/tests/unit/auth_test.py
+++ b/tests/unit/auth_test.py
@@ -9,8 +9,7 @@ import shutil
import tempfile
import unittest
-from docker import auth, errors
-import dockerpycreds
+from docker import auth, credentials, errors
import pytest
try:
@@ -661,7 +660,7 @@ class CredstoreTest(unittest.TestCase):
}
-class InMemoryStore(dockerpycreds.Store):
+class InMemoryStore(credentials.Store):
def __init__(self, *args, **kwargs):
self.__store = {}
@@ -669,7 +668,7 @@ class InMemoryStore(dockerpycreds.Store):
try:
return self.__store[server]
except KeyError:
- raise dockerpycreds.errors.CredentialsNotFound()
+ raise credentials.errors.CredentialsNotFound()
def store(self, server, username, secret):
self.__store[server] = {