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:
Liu An
2025-10-29 09:41:36 +08:00
committed by GitHub
parent d86d7061ea
commit 119713153c

View File

@ -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,