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:
Liu An
2025-08-11 17:15:48 +08:00
committed by GitHub
parent c9b156fa6d
commit 46dc3f1c48
2 changed files with 3 additions and 1 deletions

View File

@ -151,4 +151,4 @@ class TestUpdatedChunk:
with pytest.raises(Exception) as excinfo:
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)

View File

@ -693,6 +693,7 @@ class TestDatasetUpdate:
client,
{
"raptor": {"use_raptor": False},
"graphrag": {"use_graphrag": False},
},
)
dataset.update({"chunk_method": "qa"})
@ -708,6 +709,7 @@ class TestDatasetUpdate:
client,
{
"raptor": {"use_raptor": False},
"graphrag": {"use_graphrag": False},
},
)
dataset.update({"chunk_method": "qa", "parser_config": None})