mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-05 09:47:47 +08:00
Tests : add tests for dataset settings (#13747)
### What problem does this PR solve? add tests ### Type of change - [x] Other (please describe): test Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@ -173,6 +173,21 @@ class TestDatasetUpdate:
|
||||
assert res["code"] == 102, res
|
||||
assert res["message"] == f"Dataset name '{name}' already exists", res
|
||||
|
||||
@pytest.mark.p2
|
||||
def test_language_and_connectors_supported(self, HttpApiAuth, add_dataset_func):
|
||||
dataset_id = add_dataset_func
|
||||
payload = {
|
||||
"name": "language_connectors_supported",
|
||||
"description": "",
|
||||
"chunk_method": "naive",
|
||||
"language": "English",
|
||||
"connectors": [],
|
||||
}
|
||||
res = update_dataset(HttpApiAuth, dataset_id, payload)
|
||||
assert res["code"] == 0, res
|
||||
assert res["data"]["language"] == "English", res
|
||||
assert res["data"]["connectors"] == [], res
|
||||
|
||||
@pytest.mark.p2
|
||||
def test_avatar(self, HttpApiAuth, add_dataset_func, tmp_path):
|
||||
dataset_id = add_dataset_func
|
||||
|
||||
Reference in New Issue
Block a user