Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs in test #3196

Merged
merged 2 commits into from
Nov 4, 2024
Merged

fix bugs in test #3196

merged 2 commits into from
Nov 4, 2024

Conversation

Feiue
Copy link
Contributor

@Feiue Feiue commented Nov 4, 2024

What problem does this PR solve?

fix bugs in test

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@KevinHuSh KevinHuSh added the ci Continue Integration label Nov 4, 2024
@KevinHuSh KevinHuSh merged commit cbca7df into infiniflow:main Nov 4, 2024
2 checks passed
if document_ids is None:
document_ids = []
data_json ={
"offset": offset,
"limit": limit,
"offset": page,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename offset and limit?

@@ -45,7 +45,7 @@ def test_list_documents_in_dataset_with_success(get_api_key_fixture):
blob = b"Sample document content for test."
document_infos = [{"displayed_name": "test.txt","blob":blob}]
ds.upload_documents(document_infos)
ds.list_documents(keywords="test", offset=0, limit=12)
ds.list_documents(keywords="test", page=0, page_size=12)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

page defaults to 1, page_size defaults to 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continue Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants