mirror of https://github.com/docker/docker-py.git
Merge pull request #2485 from thaJeztah/fix_ImageCollectionTest_test_pull_multiple
Fix ImageCollectionTest.test_pull_multiple flakiness
This commit is contained in:
commit
f2e09ae632
|
|
@ -87,8 +87,10 @@ class ImageCollectionTest(BaseIntegrationTest):
|
|||
def test_pull_multiple(self):
|
||||
client = docker.from_env(version=TEST_API_VERSION)
|
||||
images = client.images.pull('hello-world')
|
||||
assert len(images) == 1
|
||||
assert 'hello-world:latest' in images[0].attrs['RepoTags']
|
||||
assert len(images) >= 1
|
||||
assert any([
|
||||
'hello-world:latest' in img.attrs['RepoTags'] for img in images
|
||||
])
|
||||
|
||||
def test_load_error(self):
|
||||
client = docker.from_env(version=TEST_API_VERSION)
|
||||
|
|
|
|||
Loading…
Reference in New Issue