summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFelipe Ruhland <felipe.ruhland@gmail.com>2019-12-04 19:44:27 -0300
committerFelipe Ruhland <felipe.ruhland@gmail.com>2021-02-24 23:42:20 +0100
commit7d316641a3da5ece9a29471390ef965d13b160b7 (patch)
treeafe61df26cae4352f4ccc13212066964f99e577a /tests/unit
parentd09fe8d22578f7dc2ac2e6dceb343ac1b0c8497a (diff)
downloaddocker-py-7d316641a3da5ece9a29471390ef965d13b160b7.tar.gz
Add limit parameter to image search endpoint
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/models_images_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/models_images_test.py b/tests/unit/models_images_test.py
index e3d070c..f3ca0be 100644
--- a/tests/unit/models_images_test.py
+++ b/tests/unit/models_images_test.py
@@ -112,6 +112,11 @@ class ImageCollectionTest(unittest.TestCase):
client.images.search('test')
client.api.search.assert_called_with('test')
+ def test_search_limit(self):
+ client = make_fake_client()
+ client.images.search('test', limit=5)
+ client.api.search.assert_called_with('test', limit=5)
+
class ImageTest(unittest.TestCase):
def test_short_id(self):