Go: add context, part11 (#17426)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-27 17:48:44 +08:00
committed by GitHub
parent 30b40caff8
commit 19d861b797
28 changed files with 111 additions and 89 deletions

View File

@@ -255,28 +255,28 @@ def test_documents_list_error_and_sorting_contract(rest_client, create_dataset,
f"/datasets/{dataset_id}/documents",
{"name": "unknown.txt"},
102,
"You don't own the document unknown.txt.",
"you don't own the document unknown.txt",
),
(
"id unknown",
f"/datasets/{dataset_id}/documents",
{"id": "unknown.txt"},
102,
"You don't own the document unknown.txt.",
"you don't own the document unknown.txt",
),
(
"name+id unknown name",
f"/datasets/{dataset_id}/documents",
{"id": first_id, "name": "unknown"},
102,
"You don't own the document unknown.",
"you don't own the document unknown",
),
(
"name+id unknown id",
f"/datasets/{dataset_id}/documents",
{"id": "id", "name": "ragflow_test_upload_0.txt"},
102,
"You don't own the document id.",
"you don't own the document id",
),
(
"run invalid",