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