@@ -242,6 +242,7 @@ def runTest(self):
242
242
self .assertFalse (inspect_data ['VolumesRW' ][mount_dest ])
243
243
244
244
245
+ @unittest .skipIf (NOT_ON_HOST , 'Tests running inside a container; no syslog' )
245
246
class TestCreateContainerWithLogConfig (BaseTestCase ):
246
247
def runTest (self ):
247
248
config = docker .utils .LogConfig (
@@ -1386,7 +1387,7 @@ def runTest(self):
1386
1387
1387
1388
class TestAutoDetectVersion (unittest .TestCase ):
1388
1389
def test_client_init (self ):
1389
- client = docker .Client (version = 'auto' )
1390
+ client = docker .Client (base_url = DEFAULT_BASE_URL , version = 'auto' )
1390
1391
client_version = client ._version
1391
1392
api_version = client .version (api_version = False )['ApiVersion' ]
1392
1393
self .assertEqual (client_version , api_version )
@@ -1395,15 +1396,15 @@ def test_client_init(self):
1395
1396
client .close ()
1396
1397
1397
1398
def test_auto_client (self ):
1398
- client = docker .AutoVersionClient ()
1399
+ client = docker .AutoVersionClient (base_url = DEFAULT_BASE_URL )
1399
1400
client_version = client ._version
1400
1401
api_version = client .version (api_version = False )['ApiVersion' ]
1401
1402
self .assertEqual (client_version , api_version )
1402
1403
api_version_2 = client .version ()['ApiVersion' ]
1403
1404
self .assertEqual (client_version , api_version_2 )
1404
1405
client .close ()
1405
1406
with self .assertRaises (docker .errors .DockerException ):
1406
- docker .AutoVersionClient (version = '1.11' )
1407
+ docker .AutoVersionClient (base_url = DEFAULT_BASE_URL , version = '1.11' )
1407
1408
1408
1409
1409
1410
class TestConnectionTimeout (unittest .TestCase ):
0 commit comments