diff options
author | Joffrey F <joffrey@docker.com> | 2018-11-28 11:24:21 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-11-28 11:27:04 -0800 |
commit | c53423f11851a69fa18783b5b0b801a24d8d2f82 (patch) | |
tree | c481d3ac2096d7e1f6b0e6ee2fdffe670f685d14 /tests/unit/models_containers_test.py | |
parent | a74d546864b64ba03dce1e3407d3b0cd5badee9f (diff) | |
download | docker-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.py | 5 |
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() |