@@ -1589,13 +1589,15 @@ def test_list_blobs_w_defaults_w_bucket_obj(self):
1589
1589
expected_max_results = None
1590
1590
expected_extra_params = {"projection" : "noAcl" }
1591
1591
expected_page_start = _blobs_page_start
1592
+ expected_page_size = None
1592
1593
client ._list_resource .assert_called_once_with (
1593
1594
expected_path ,
1594
1595
expected_item_to_value ,
1595
1596
page_token = expected_page_token ,
1596
1597
max_results = expected_max_results ,
1597
1598
extra_params = expected_extra_params ,
1598
1599
page_start = expected_page_start ,
1600
+ page_size = expected_page_size ,
1599
1601
timeout = self ._get_default_timeout (),
1600
1602
retry = DEFAULT_RETRY ,
1601
1603
)
@@ -1616,6 +1618,7 @@ def test_list_blobs_w_explicit_w_user_project(self):
1616
1618
include_trailing_delimiter = True
1617
1619
versions = True
1618
1620
projection = "full"
1621
+ page_size = 2
1619
1622
fields = "items/contentLanguage,nextPageToken"
1620
1623
credentials = _make_credentials ()
1621
1624
client = self ._make_one (project = project , credentials = credentials )
@@ -1641,6 +1644,7 @@ def test_list_blobs_w_explicit_w_user_project(self):
1641
1644
versions = versions ,
1642
1645
projection = projection ,
1643
1646
fields = fields ,
1647
+ page_size = page_size ,
1644
1648
timeout = timeout ,
1645
1649
retry = retry ,
1646
1650
)
@@ -1665,13 +1669,15 @@ def test_list_blobs_w_explicit_w_user_project(self):
1665
1669
"userProject" : user_project ,
1666
1670
}
1667
1671
expected_page_start = _blobs_page_start
1672
+ expected_page_size = 2
1668
1673
client ._list_resource .assert_called_once_with (
1669
1674
expected_path ,
1670
1675
expected_item_to_value ,
1671
1676
page_token = expected_page_token ,
1672
1677
max_results = expected_max_results ,
1673
1678
extra_params = expected_extra_params ,
1674
1679
page_start = expected_page_start ,
1680
+ page_size = expected_page_size ,
1675
1681
timeout = timeout ,
1676
1682
retry = retry ,
1677
1683
)
@@ -1699,6 +1705,7 @@ def test_list_buckets_w_defaults(self):
1699
1705
expected_item_to_value = _item_to_bucket
1700
1706
expected_page_token = None
1701
1707
expected_max_results = None
1708
+ expected_page_size = None
1702
1709
expected_extra_params = {
1703
1710
"project" : project ,
1704
1711
"projection" : "noAcl" ,
@@ -1709,6 +1716,7 @@ def test_list_buckets_w_defaults(self):
1709
1716
page_token = expected_page_token ,
1710
1717
max_results = expected_max_results ,
1711
1718
extra_params = expected_extra_params ,
1719
+ page_size = expected_page_size ,
1712
1720
timeout = self ._get_default_timeout (),
1713
1721
retry = DEFAULT_RETRY ,
1714
1722
)
@@ -1726,6 +1734,7 @@ def test_list_buckets_w_explicit(self):
1726
1734
credentials = _make_credentials ()
1727
1735
client = self ._make_one (project = project , credentials = credentials )
1728
1736
client ._list_resource = mock .Mock (spec = [])
1737
+ page_size = 2
1729
1738
timeout = 42
1730
1739
retry = mock .Mock (spec = [])
1731
1740
@@ -1736,6 +1745,7 @@ def test_list_buckets_w_explicit(self):
1736
1745
prefix = prefix ,
1737
1746
projection = projection ,
1738
1747
fields = fields ,
1748
+ page_size = page_size ,
1739
1749
timeout = timeout ,
1740
1750
retry = retry ,
1741
1751
)
@@ -1752,12 +1762,14 @@ def test_list_buckets_w_explicit(self):
1752
1762
"projection" : projection ,
1753
1763
"fields" : fields ,
1754
1764
}
1765
+ expected_page_size = 2
1755
1766
client ._list_resource .assert_called_once_with (
1756
1767
expected_path ,
1757
1768
expected_item_to_value ,
1758
1769
page_token = expected_page_token ,
1759
1770
max_results = expected_max_results ,
1760
1771
extra_params = expected_extra_params ,
1772
+ page_size = expected_page_size ,
1761
1773
timeout = timeout ,
1762
1774
retry = retry ,
1763
1775
)
0 commit comments