浏览代码

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)
tags/v0.20.2
Liu An 2 个月前
父节点
当前提交
46dc3f1c48
没有帐户链接到提交者的电子邮件

+ 1
- 1
test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.py 查看文件

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

+ 2
- 0
test/testcases/test_sdk_api/test_dataset_mangement/test_update_dataset.py 查看文件

@@ -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})

正在加载...
取消
保存