Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
glide-the committed May 21, 2024
1 parent cce066a commit ba26168
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/integration_tests/test_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ def test_batch_list(logging_conf) -> None:
try:
list = client.batches.list(limit=10)
print(list)
print("_________get_next_page___________")
batch = list.get_next_page()
print(batch)
print("_________iter_pages___________")
for batch in list.iter_pages():
if list.has_more:
print("_________get_next_page___________")
batch = list.get_next_page()
print(batch)
print("_________iter_pages___________")
for batch in list.iter_pages():
print(batch)
except zhipuai.core._errors.APIRequestFailedError as err:
print(err)
except zhipuai.core._errors.APIInternalError as err:
Expand Down

0 comments on commit ba26168

Please sign in to comment.