Skip to content

Commit fb26c3a

Browse files
committed
better example of using params for real-world usage
1 parent c5d32a5 commit fb26c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def woo_test_mock(*args, **kwargs):
8888

8989
with HTTMock(woo_test_mock):
9090
# call requests
91-
status = self.api.get("products", params={'sku': 10001}).status_code
91+
status = self.api.get("products", params={"per_page": 10, "page": 1, "offset": 0}).status_code
9292
self.assertEqual(status, 200)
9393

9494
def test_get_with_requests_kwargs(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy