Skip to content

Commit ba26168

Browse files
committed
测试
1 parent cce066a commit ba26168

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/integration_tests/test_batches.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ def test_batch_list(logging_conf) -> None:
8787
try:
8888
list = client.batches.list(limit=10)
8989
print(list)
90-
print("_________get_next_page___________")
91-
batch = list.get_next_page()
92-
print(batch)
93-
print("_________iter_pages___________")
94-
for batch in list.iter_pages():
90+
if list.has_more:
91+
print("_________get_next_page___________")
92+
batch = list.get_next_page()
9593
print(batch)
94+
print("_________iter_pages___________")
95+
for batch in list.iter_pages():
96+
print(batch)
9697
except zhipuai.core._errors.APIRequestFailedError as err:
9798
print(err)
9899
except zhipuai.core._errors.APIInternalError as err:

0 commit comments

Comments
 (0)