mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: Update test assertions and add GraphRAG config in dataset tests (#9386)
### What problem does this PR solve? - Modify error message assertion in chunk update test to check for document ownership - Add GraphRAG configuration with `use_graphrag: False` in dataset update tests - Fix actions: https://github.com/infiniflow/ragflow/actions/runs/16863637898/job/47767511582 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -151,4 +151,4 @@ class TestUpdatedChunk:
|
|||||||
|
|
||||||
with pytest.raises(Exception) as excinfo:
|
with pytest.raises(Exception) as excinfo:
|
||||||
chunks[0].update({})
|
chunks[0].update({})
|
||||||
assert f"Can't find this chunk {chunks[0].id}" in str(excinfo.value), str(excinfo.value)
|
assert f"You don't own the document {chunks[0].document_id}" in str(excinfo.value), str(excinfo.value)
|
||||||
|
|||||||
@ -693,6 +693,7 @@ class TestDatasetUpdate:
|
|||||||
client,
|
client,
|
||||||
{
|
{
|
||||||
"raptor": {"use_raptor": False},
|
"raptor": {"use_raptor": False},
|
||||||
|
"graphrag": {"use_graphrag": False},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
dataset.update({"chunk_method": "qa"})
|
dataset.update({"chunk_method": "qa"})
|
||||||
@ -708,6 +709,7 @@ class TestDatasetUpdate:
|
|||||||
client,
|
client,
|
||||||
{
|
{
|
||||||
"raptor": {"use_raptor": False},
|
"raptor": {"use_raptor": False},
|
||||||
|
"graphrag": {"use_graphrag": False},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
dataset.update({"chunk_method": "qa", "parser_config": None})
|
dataset.update({"chunk_method": "qa", "parser_config": None})
|
||||||
|
|||||||
Reference in New Issue
Block a user