mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
Test: update test cases for chunk retrieval pagination (#10694)
### What problem does this PR solve? Updated test cases in test_retrieval_chunks.py to: - Remove skip mark from page pagination test case (issues/6646 resolved) - Add skip marks for page_size=1 tests due to new issue (issues/10692) ### Type of change - [x] Test
This commit is contained in:
@ -83,7 +83,7 @@ class TestChunksRetrieval:
|
|||||||
"ValueError('Search does not support negative slicing.')",
|
"ValueError('Search does not support negative slicing.')",
|
||||||
marks=pytest.mark.skip,
|
marks=pytest.mark.skip,
|
||||||
),
|
),
|
||||||
pytest.param({"page": 2, "page_size": 2}, 0, 2, "", marks=pytest.mark.skip(reason="issues/6646")),
|
({"page": 2, "page_size": 2}, 0, 2, ""),
|
||||||
({"page": 3, "page_size": 2}, 0, 0, ""),
|
({"page": 3, "page_size": 2}, 0, 0, ""),
|
||||||
({"page": "3", "page_size": 2}, 0, 0, ""),
|
({"page": "3", "page_size": 2}, 0, 0, ""),
|
||||||
pytest.param(
|
pytest.param(
|
||||||
@ -124,9 +124,9 @@ class TestChunksRetrieval:
|
|||||||
marks=pytest.mark.skip,
|
marks=pytest.mark.skip,
|
||||||
),
|
),
|
||||||
# ({"page_size": 0}, 0, 0, ""),
|
# ({"page_size": 0}, 0, 0, ""),
|
||||||
({"page_size": 1}, 0, 1, ""),
|
pytest.param({"page_size": 1}, 0, 1, "", marks=pytest.mark.skip(reason="issues/10692")),
|
||||||
({"page_size": 5}, 0, 4, ""),
|
({"page_size": 5}, 0, 4, ""),
|
||||||
({"page_size": "1"}, 0, 1, ""),
|
pytest.param({"page_size": "1"}, 0, 1, "", marks=pytest.mark.skip(reason="issues/10692")),
|
||||||
# ({"page_size": -1}, 0, 0, ""),
|
# ({"page_size": -1}, 0, 0, ""),
|
||||||
pytest.param(
|
pytest.param(
|
||||||
{"page_size": "a"},
|
{"page_size": "a"},
|
||||||
|
|||||||
Reference in New Issue
Block a user