summaryrefslogtreecommitdiff
path: root/tests/unit/cli/docker_client_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-09-28 15:36:57 -0700
committerJoffrey F <joffrey@docker.com>2016-09-28 15:36:57 -0700
commit007cf96452a28941fde58f8b775f7cd48d86c1c9 (patch)
treec8b1fdb385de6289ec1bfa84cc73fa48342c07f8 /tests/unit/cli/docker_client_test.py
parentf65f89ad8c26684a314d9099fe35bcea07dbe5dc (diff)
Use docker-py's default behavior when no explicit host on Windows
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/unit/cli/docker_client_test.py')
-rw-r--r--tests/unit/cli/docker_client_test.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/unit/cli/docker_client_test.py b/tests/unit/cli/docker_client_test.py
index 6cdb7da5..aaa935af 100644
--- a/tests/unit/cli/docker_client_test.py
+++ b/tests/unit/cli/docker_client_test.py
@@ -60,14 +60,6 @@ class DockerClientTestCase(unittest.TestCase):
)
self.assertEqual(client.headers['User-Agent'], expected)
- @mock.patch.dict(os.environ)
- def test_docker_client_default_windows_host(self):
- with mock.patch('compose.cli.docker_client.IS_WINDOWS_PLATFORM', True):
- if 'DOCKER_HOST' in os.environ:
- del os.environ['DOCKER_HOST']
- client = docker_client(os.environ)
- assert client.base_url == 'http://127.0.0.1:2375'
-
class TLSConfigTestCase(unittest.TestCase):
ca_cert = 'tests/fixtures/tls/ca.pem'