summaryrefslogtreecommitdiff
path: root/tests/unit/models_containers_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2018-11-28 11:24:21 -0800
committerJoffrey F <joffrey@docker.com>2018-11-28 11:27:04 -0800
commitc53423f11851a69fa18783b5b0b801a24d8d2f82 (patch)
treec481d3ac2096d7e1f6b0e6ee2fdffe670f685d14 /tests/unit/models_containers_test.py
parenta74d546864b64ba03dce1e3407d3b0cd5badee9f (diff)
downloaddocker-py-adw1n-i2116.tar.gz
Update DockerClient.images.pull to always stream responseadw1n-i2116
Also raise a warning when users attempt to specify the "stream" parameter Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/unit/models_containers_test.py')
-rw-r--r--tests/unit/models_containers_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/models_containers_test.py b/tests/unit/models_containers_test.py
index 957035a..39e409e 100644
--- a/tests/unit/models_containers_test.py
+++ b/tests/unit/models_containers_test.py
@@ -232,8 +232,9 @@ class ContainerCollectionTest(unittest.TestCase):
container = client.containers.run('alpine', 'sleep 300', detach=True)
assert container.id == FAKE_CONTAINER_ID
- client.api.pull.assert_called_with('alpine', platform=None, tag=None,
- stream=False)
+ client.api.pull.assert_called_with(
+ 'alpine', platform=None, tag=None, stream=True
+ )
def test_run_with_error(self):
client = make_fake_client()