Some minor cleanup from yelp/fig
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
This commit is contained in:
parent
c0123c7477
commit
3c0f297ba6
5 changed files with 42 additions and 12 deletions
|
|
@ -14,3 +14,9 @@ class DockerClientTestCase(unittest.TestCase):
|
|||
with mock.patch.dict(os.environ):
|
||||
del os.environ['HOME']
|
||||
docker_client.docker_client()
|
||||
|
||||
def test_docker_client_with_custom_timeout(self):
|
||||
with mock.patch.dict(os.environ):
|
||||
os.environ['DOCKER_CLIENT_TIMEOUT'] = timeout = "300"
|
||||
client = docker_client.docker_client()
|
||||
self.assertEqual(client._timeout, int(timeout))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue