8000 better example of using params for real-world usage · RjGreens/wc-api-python@fb26c3a · GitHub
[go: up one dir, main page]

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)
0