Skip to content

Commit 0930ffc

Browse files
committed
fix: use count instead of limit
1 parent 0aa83b1 commit 0930ffc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testingbotclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_test_ids(self):
8787

8888
def get_tests(self, offset = 0, limit = 30):
8989
"""List all tests belonging to the user."""
90-
url = '/tests?offset=' + str(offset) + '&limit=' + str(limit)
90+
url = '/tests?offset=' + str(offset) + '&count=' + str(limit)
9191
tests = self.client.get(url)
9292
return tests["data"]
9393

@@ -145,7 +145,7 @@ def remove_file(self, app_url):
145145

146146
def get_stored_files(self, offset = 0, limit = 30):
147147
"""Retrieves all files previously uploaded to TestingBot Storage."""
148-
return self.client.get("/storage/?limit=" + str(limit) + "&offset=" + str(offset))
148+
return self.client.get("/storage/?count=" + str(limit) + "&offset=" + str(offset))
149149

150150
class Information(object):
151151
def __init__(self, client):
@@ -193,7 +193,7 @@ def __init__(self, client):
193193

194194
def get_builds(self, offset = 0, limit = 30):
195195
"""Get all builds"""
196-
return self.client.get('/builds?offset=' + str(offset) + '&limit=' + str(limit))
196+
return self.client.get('/builds?offset=' + str(offset) + '&count=' + str(limit))
197197

198198
def get_tests_for_build(self, buildId):
199199
"""Get tests for a specific build"""

0 commit comments

Comments
 (0)