Fix a test case that assumes busybox image id.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
ac75d35927
commit
d01f712376
2 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
from __future__ import unicode_literals
|
||||
from __future__ import absolute_import
|
||||
|
||||
from docker import errors
|
||||
|
||||
from compose.service import Service
|
||||
from compose.config import ServiceLoader
|
||||
from compose.const import LABEL_PROJECT
|
||||
|
|
@ -8,6 +11,13 @@ from compose.progress_stream import stream_output
|
|||
from .. import unittest
|
||||
|
||||
|
||||
def pull_busybox(client):
|
||||
try:
|
||||
client.inspect_image('busybox:latest')
|
||||
except errors.APIError:
|
||||
client.pull('busybox:latest', stream=False)
|
||||
|
||||
|
||||
class DockerClientTestCase(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue