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:
Idriss Sbaaoui
2026-03-24 19:04:04 +08:00
committed by GitHub
parent 1b1f1bc69f
commit 10a36d6443

View File

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