Align p3 HTTP/SDK tests with current backend behavior (#12563)

### What problem does this PR solve?

Updates pre-existing HTTP API and SDK tests to align with current
backend behavior (validation errors, 404s, and schema defaults). This
ensures p3 regression coverage is accurate without changing production
code.

### Type of change

- [x] Other (please describe): align p3 HTTP/SDK tests with current
backend behavior

---------

Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
6ba3i
2026-01-13 19:22:47 +08:00
committed by GitHub
parent 941651a16f
commit 0795616b34
15 changed files with 94 additions and 66 deletions

View File

@ -663,6 +663,8 @@ class TestDatasetUpdate:
{
"raptor": {"use_raptor": False},
"graphrag": {"use_graphrag": False},
"image_context_size": 0,
"table_context_size": 0,
},
)
dataset.update({"chunk_method": "qa", "parser_config": {}})
@ -679,6 +681,8 @@ class TestDatasetUpdate:
{
"raptor": {"use_raptor": False},
"graphrag": {"use_graphrag": False},
"image_context_size": 0,
"table_context_size": 0,
},
)
dataset.update({"chunk_method": "qa"})
@ -695,6 +699,8 @@ class TestDatasetUpdate:
{
"raptor": {"use_raptor": False},
"graphrag": {"use_graphrag": False},
"image_context_size": 0,
"table_context_size": 0,
},
)
dataset.update({"chunk_method": "qa", "parser_config": None})