RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Test: Adjust the priority of some test cases from P1/P2 to P3. (#19461)
Liu Anba575b0ce22a
diff --git a/test/testcases/restful_api/test_chunks.py b/test/testcases/restful_api/test_chunks.pyindex f751c15ba2..eabb439609 100644--- a/test/testcases/restful_api/test_chunks.py+++ b/test/testcases/restful_api/test_chunks.py@@ -192,7 +192,7 @@ def test_chunks_add_requires_content(rest_client, create_document):assert payload["message"] == "`content` is required", payloaddef test_chunk_add_keyword_question_and_tag_contract(rest_client, create_document):add_cases = [(@@ -284,7 +284,7 @@ def test_chunk_add_invalid_dataset_and_document_contract(rest_client, create_docassert invalid_document_payload["message"] == f"you don't own the document {INVALID_ID_32}", invalid_document_payloaddef test_chunk_add_repeated_and_deleted_document_contract(rest_client, create_document):dataset_id, document_id = create_document("chunk_repeat_deleted.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -318,7 +318,7 @@ def test_chunk_add_repeated_and_deleted_document_contract(rest_client, create_doassert add_after_delete_payload["message"] == f"you don't own the document {document_id}", add_after_delete_payload@pytest.mark.parametrize("count", [20])def test_chunk_concurrent_add_contract(rest_client, create_document, count):dataset_id, document_id = create_document("chunk_concurrent_add.txt")@@ -342,7 +342,7 @@ def test_chunk_concurrent_add_contract(rest_client, create_document, count):assert final_payload["data"]["doc"]["chunk_count"] == initial_count + count, final_payloaddef test_chunks_list_empty_document(rest_client, create_document):dataset_id, document_id = create_document("chunk_list_empty.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -387,7 +387,7 @@ def test_chunk_delete_basic_contract(rest_client, create_document):assert list_payload["data"]["total"] == remaining, (scenario_name, list_payload)def test_chunk_delete_partial_duplicate_repeat_and_invalid_target_contract(rest_client, create_document):dataset_id, document_id = create_document("chunk_delete_detail.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -449,7 +449,7 @@ def test_chunk_delete_partial_duplicate_repeat_and_invalid_target_contract(rest_assert invalid_document_payload["message"] == f"you don't own the document {INVALID_ID_32}", invalid_document_payloaddef test_chunk_delete_web_legacy_basic_variants(rest_client, create_document):dataset_id, document_id = create_document("chunk_delete_web_legacy_again.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -506,7 +506,7 @@ def test_chunk_delete_concurrent_and_bulk_contract(rest_client, create_document)assert bulk_payload["code"] == 0, bulk_payloaddef test_chunk_list_default_get_id_and_invalid_target_contract(rest_client, create_document):dataset_id, document_id = create_document("chunk_list_core.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -563,7 +563,7 @@ def test_chunk_list_default_get_id_and_invalid_target_contract(rest_client, creaassert invalid_document_payload["message"] == f"you don't own the document {INVALID_ID_32}", invalid_document_payloaddef test_chunk_list_keyword_and_invalid_param_contract(rest_client, create_document):if _is_infinity_doc_engine(rest_client):pytest.skip("infinity")@@ -590,7 +590,7 @@ def test_chunk_list_keyword_and_invalid_param_contract(rest_client, create_documassert len(payload["data"]["chunks"]) == expected_total, (scenario_name, payload)def test_chunk_list_page_and_page_size_contract(rest_client, create_document):if _is_infinity_doc_engine(rest_client):pytest.skip("infinity")@@ -627,7 +627,7 @@ def test_chunk_list_page_and_page_size_contract(rest_client, create_document):assert expected_message in payload["message"], (scenario_name, payload)def test_chunk_list_concurrent_contract(rest_client, create_document):dataset_id, document_id = create_document("chunk_list_concurrent.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"@@ -697,7 +697,7 @@ def test_chunk_update_content_and_available_contract(rest_client, create_documenassert expected_message in body["message"], (scenario_name, body)def test_chunk_update_keywords_questions_and_tag_contract(rest_client, create_document):_, _, chunk_id, base_path = _create_chunk_for_update(rest_client, create_document, "chunk_update_fields.txt")cases = [diff --git a/test/testcases/restful_api/test_datasets.py b/test/testcases/restful_api/test_datasets.pyindex 6cc96d88bc..67203bc784 100644--- a/test/testcases/restful_api/test_datasets.py+++ b/test/testcases/restful_api/test_datasets.py@@ -2422,7 +2422,7 @@ def test_dataset_metadata_summary_contract(rest_client, create_dataset, tmp_pathassert nonexistent_payload["code"] == 102, nonexistent_payloaddef test_dataset_search_endpoint(rest_client, ensure_parsed_document):dataset_id, _ = ensure_parsed_document()res = rest_client.post(diff --git a/test/testcases/restful_api/test_documents.py b/test/testcases/restful_api/test_documents.pyindex c28f2f4052..ccef3980a7 100644--- a/test/testcases/restful_api/test_documents.py+++ b/test/testcases/restful_api/test_documents.py@@ -163,7 +163,7 @@ def test_documents_upload_requires_auth(create_dataset, tmp_path):assert_auth_error(payload, scenario_name)def test_documents_list_default_concurrent_and_filters_contract(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents(rest_client, create_dataset, tmp_path)first_id = uploaded_docs[0]["id"]@@ -209,7 +209,7 @@ def test_documents_list_default_concurrent_and_filters_contract(rest_client, creassert len(payload["data"]["docs"]) == expected_docs, (params, payload)def test_documents_list_error_and_sorting_contract(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents(rest_client, create_dataset, tmp_path)first_id = uploaded_docs[0]["id"]@@ -596,7 +596,7 @@ def test_documents_update_invalid_dataset_and_document_contract(rest_client, creassert invalid_document_body["message"] == "the dataset doesn't own the document", invalid_document_bodydef test_documents_update_chunk_method_contract(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents_for_update(rest_client, create_dataset, tmp_path)first_document_id = uploaded_docs[0]["id"]@@ -740,7 +740,7 @@ def test_documents_update_invalid_field_and_guard_contract(rest_client, create_dassert "data" in body, (payload, body)def test_documents_update_parser_config_contract(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents_for_update(rest_client, create_dataset, tmp_path)first_document_id = uploaded_docs[0]["id"]@@ -860,7 +860,7 @@ def test_documents_parse_and_stop(rest_client, create_document):assert "already completed" in stop_payload["message"], stop_payloaddef test_documents_metadata_batch_update_contract(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents(rest_client, create_dataset, tmp_path, count=5)document_ids = [doc["id"] for doc in uploaded_docs]@@ -1108,7 +1108,7 @@ def test_documents_delete_requires_auth(rest_client, create_dataset, tmp_path):assert_auth_error(body, scenario_name)def test_documents_delete_invalid_dataset_partial_duplicate_repeat_and_cross_dataset(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents(rest_client, create_dataset, tmp_path, count=3)document_ids = [doc["id"] for doc in uploaded_docs]@@ -1378,7 +1378,7 @@ def test_documents_stop_parse_requires_auth(rest_client, create_document):assert_auth_error(body, scenario_name)def test_documents_stop_parse_contract_matrix(rest_client, create_dataset, tmp_path):dataset_id, uploaded_docs = _seed_documents(rest_client, create_dataset, tmp_path, count=6)doc_ids = [doc["id"] for doc in uploaded_docs]@@ -1504,7 +1504,7 @@ def test_documents_download_requires_auth_and_invalid_id_contract(rest_client, cassert invalid_dataset_payload["message"] == "document not found", invalid_dataset_payloaddef test_documents_download_filetype_repeat_and_concurrent_contract(rest_client, create_dataset, tmp_path):dataset_id = create_dataset("dataset_download_contract")diff --git a/test/testcases/restful_api/test_message_routes_unit.py b/test/testcases/restful_api/test_message_routes_unit.pyindex e92979928f..cf5afcf2df 100644--- a/test/testcases/restful_api/test_message_routes_unit.py+++ b/test/testcases/restful_api/test_message_routes_unit.py@@ -124,7 +124,7 @@ def test_add_message_partial_failure_branch(monkeypatch):assert "Some messages failed to add" in res["message"], resdef test_get_messages_csv_and_missing_memory_ids(monkeypatch):module = _load_memory_routes_module(monkeypatch)diff --git a/test/testcases/restful_api/test_retrieval.py b/test/testcases/restful_api/test_retrieval.pyindex b4514b5163..0908a4925a 100644--- a/test/testcases/restful_api/test_retrieval.py+++ b/test/testcases/restful_api/test_retrieval.py@@ -363,7 +363,7 @@ def test_deleted_chunk_not_in_retrieval_contract(rest_client, create_document):_retrieval_lacks_chunks(rest_client, dataset_id, content, [chunk_id])def test_deleted_chunks_batch_not_in_retrieval_contract(rest_client, create_document):dataset_id, document_id = create_document("retrieval_deleted_chunks_batch.txt")base_path = f"/datasets/{dataset_id}/documents/{document_id}/chunks"diff --git a/test/testcases/restful_api/test_sessions.py b/test/testcases/restful_api/test_sessions.pyindex 686b1437dc..4feec4a7a9 100644--- a/test/testcases/restful_api/test_sessions.py+++ b/test/testcases/restful_api/test_sessions.py@@ -237,7 +237,7 @@ def test_session_delete_requires_auth_and_invalid_target_contract(rest_client, cassert invalid_chat_payload["message"].lower().strip().rstrip(".") == "no authorization", invalid_chat_payloaddef test_session_delete_basic_scenarios(rest_client, create_chat):cases = [("none payload", None, 0, 5, {}),@@ -641,7 +641,7 @@ def test_chat_completion_nonstream_with_session(rest_client, create_chat):assert completion_payload["data"]["session_id"] == session_id, completion_payloaddef test_chat_completion_nonstream_with_chat_without_session(rest_client, create_chat):chat_id = create_chat("restful_completion_nonstream_without_session_chat")diff --git a/test/testcases/test_sdk_api/test_chat_assistant_management/test_list_chat_assistants.py b/test/testcases/test_sdk_api/test_chat_assistant_management/test_list_chat_assistants.pyindex f13d72939f..93085a0d84 100644--- a/test/testcases/test_sdk_api/test_chat_assistant_management/test_list_chat_assistants.py+++ b/test/testcases/test_sdk_api/test_chat_assistant_management/test_list_chat_assistants.py@@ -25,7 +25,7 @@ class TestChatAssistantsList:assistants = client.list_chats()assert len(assistants) == 5- @pytest.mark.p1+ @pytest.mark.p3@pytest.mark.parametrize("params, expected_page_size, expected_message",[diff --git a/test/testcases/test_sdk_api/test_chat_assistant_management/test_update_chat_assistant.py b/test/testcases/test_sdk_api/test_chat_assistant_management/test_update_chat_assistant.pyindex 5ebaf22ffb..719e17a43c 100644--- a/test/testcases/test_sdk_api/test_chat_assistant_management/test_update_chat_assistant.py+++ b/test/testcases/test_sdk_api/test_chat_assistant_management/test_update_chat_assistant.py@@ -72,7 +72,7 @@ class TestChatAssistantUpdate:@pytest.mark.parametrize("payload, expected_message",[- pytest.param({"name": "valid_name"}, "", marks=pytest.mark.p1),+ pytest.param({"name": "valid_name"}, "", marks=pytest.mark.p3),pytest.param({"name": "a" * (CHAT_ASSISTANT_NAME_LIMIT + 1)}, "", marks=pytest.mark.skip(reason="issues/")),pytest.param({"name": 1}, "", marks=pytest.mark.skip(reason="issues/")),pytest.param({"name": ""}, "`name` cannot be empty", marks=pytest.mark.p3),diff --git a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_list_chunks.py b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_list_chunks.pyindex 41767491c9..e4f11dfcb2 100644--- a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_list_chunks.py+++ b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_list_chunks.py@@ -46,7 +46,7 @@ class TestChunksList:chunks = document.list_chunks(**params)assert len(chunks) == expected_page_size, str(chunks)- @pytest.mark.p1+ @pytest.mark.p3@pytest.mark.parametrize("params, expected_page_size, expected_message",[diff --git a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_retrieval_chunks.py b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_retrieval_chunks.pyindex 4e90137836..112765b730 100644--- a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_retrieval_chunks.py+++ b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_retrieval_chunks.py@@ -47,7 +47,7 @@ class TestChunksRetrieval:chunks = client.retrieve(**payload)assert len(chunks) == expected_page_size, str(chunks)- @pytest.mark.p2+ @pytest.mark.p3@pytest.mark.parametrize("payload, expected_page_size, expected_message",[diff --git a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.py b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.pyindex b6fef1350b..460292da3f 100644--- a/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.py+++ b/test/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.py@@ -48,7 +48,7 @@ class TestUpdatedChunk:else:chunk.update(payload)- @pytest.mark.p2+ @pytest.mark.p3@pytest.mark.parametrize("payload, expected_message",[diff --git a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_delete_documents.py b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_delete_documents.pyindex ff2fe23129..8b059aa7d9 100644--- a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_delete_documents.py+++ b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_delete_documents.py@@ -20,7 +20,7 @@ from common import bulk_upload_documents, list_all_documentsclass TestDocumentsDeletion:- @pytest.mark.p1+ @pytest.mark.p3@pytest.mark.parametrize("payload, expected_message, remaining",[@@ -54,7 +54,7 @@ class TestDocumentsDeletion:documents = dataset.list_documents()assert len(documents) == remaining, str(documents)- @pytest.mark.p2+ @pytest.mark.p3@pytest.mark.parametrize("payload",[@@ -74,7 +74,7 @@ class TestDocumentsDeletion:documents = dataset.list_documents()assert len(documents) == 3, str(documents)- @pytest.mark.p2+ @pytest.mark.p3def test_repeated_deletion(self, add_documents_func):dataset, documents = add_documents_funcdocument_ids = [document.id for document in documents]diff --git a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_download_document.py b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_download_document.pyindex da5a806743..821f35f958 100644--- a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_download_document.py+++ b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_download_document.py@@ -148,7 +148,7 @@ class TestDocumentDownload:f.write(documents[0].download())assert compare_by_hash(ragflow_tmp_dir / "ragflow_test_upload_0.txt", download_path), f"Downloaded file {i} does not match original"- @pytest.mark.p2+ @pytest.mark.p3def test_download_error_json_raises(self, add_documents):dataset, documents = add_documentsdocument = documents[0]diff --git a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_list_documents.py b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_list_documents.pyindex cc084e8ae3..7547228397 100644--- a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_list_documents.py+++ b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_list_documents.py@@ -220,7 +220,7 @@ class TestDocumentsList:assert len(documents) == 5, str(documents)assert {document.id for document in documents} == expected_ids, str(documents)- @pytest.mark.p1+ @pytest.mark.p3def test_id_and_ids_raise_value_error(self, add_documents):dataset, documents = add_documentsdiff --git a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_update_document.py b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_update_document.pyindex d02db8ffba..78d5fbb217 100644--- a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_update_document.py+++ b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_update_document.py@@ -271,7 +271,7 @@ class TestDocumentsUpdated:document.update(payload)assert expected_message in str(exception_info.value), str(exception_info.value)- @pytest.mark.p2+ @pytest.mark.p3@pytest.mark.parametrize("payload, expected_message",[@@ -321,7 +321,7 @@ DEFAULT_PARSER_CONFIG_FOR_TEST = {class TestUpdateDocumentParserConfig:- @pytest.mark.p2+ @pytest.mark.p3@pytest.mark.parametrize("chunk_method, parser_config, expected_message",[diff --git a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_upload_documents.py b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_upload_documents.pyindex 9975af1ec6..4ceb31624c 100644--- a/test/testcases/test_sdk_api/test_file_management_within_dataset/test_upload_documents.py+++ b/test/testcases/test_sdk_api/test_file_management_within_dataset/test_upload_documents.py@@ -141,7 +141,7 @@ class TestDocumentsUpload:expected_name = fp.name if i == 0 else f"{fp.stem}({i}){fp.suffix}"assert document.name == expected_name, str(document)- @pytest.mark.p2+ @pytest.mark.p3def test_same_file_repeat(self, add_dataset_func, tmp_path):dataset = add_dataset_funcfp = create_txt_file(tmp_path / "ragflow_test.txt")@@ -175,7 +175,7 @@ class TestDocumentsUpload:assert document.dataset_id == dataset.id, str(document)assert document.name == fp.name, str(document)- @pytest.mark.p1+ @pytest.mark.p3def test_multiple_files(self, client, add_dataset_func, tmp_path):dataset = add_dataset_funcexpected_document_count = 20diff --git a/test/testcases/test_sdk_api/test_message_management/test_add_message.py b/test/testcases/test_sdk_api/test_message_management/test_add_message.pyindex ec7e7f1c7e..fc0dcd4435 100644--- a/test/testcases/test_sdk_api/test_message_management/test_add_message.py+++ b/test/testcases/test_sdk_api/test_message_management/test_add_message.py@@ -41,7 +41,7 @@ class TestAuthorization:@pytest.mark.usefixtures("add_empty_raw_type_memory")class TestAddRawMessage:- @pytest.mark.p1+ @pytest.mark.p3def test_add_raw_message(self, client):memory_id = self.memory_idagent_id = uuid.uuid4().hex@@ -111,7 +111,7 @@ Are you asking about the fruit itself, or its use in a specific context?@pytest.mark.usefixtures("add_2_multiple_type_memory")class TestAddToMultipleMemory:- @pytest.mark.p1+ @pytest.mark.p3def test_add_to_multiple_memory(self, client):memory_ids = self.memory_idsagent_id = uuid.uuid4().hexdiff --git a/test/testcases/test_sdk_api/test_message_management/test_get_recent_message.py b/test/testcases/test_sdk_api/test_message_management/test_get_recent_message.pyindex b187295ce9..786873c793 100644--- a/test/testcases/test_sdk_api/test_message_management/test_get_recent_message.py+++ b/test/testcases/test_sdk_api/test_message_management/test_get_recent_message.py@@ -44,7 +44,7 @@ class TestGetRecentMessage:res = client.get_recent_messages([memory_id])assert len(res) == 5, res- @pytest.mark.p2+ @pytest.mark.p3def test_filter_recent_messages_by_agent(self, client):memory_id = self.memory_idagent_ids = self.agent_idsdiff --git a/test/testcases/test_sdk_api/test_message_management/test_list_message.py b/test/testcases/test_sdk_api/test_message_management/test_list_message.pyindex be99c2ac88..0ae2ac35db 100644--- a/test/testcases/test_sdk_api/test_message_management/test_list_message.py+++ b/test/testcases/test_sdk_api/test_message_management/test_list_message.py@@ -48,7 +48,7 @@ class TestMessageList:res = memory.list_memory_messages()assert len(res["messages"]["message_list"]) == 5, str(res)- @pytest.mark.p2+ @pytest.mark.p3def test_params_empty(self, client):memory_id = self.memory_idmemory = Memory(client, {"id": memory_id})diff --git a/test/testcases/test_sdk_api/test_message_management/test_update_message_status.py b/test/testcases/test_sdk_api/test_message_management/test_update_message_status.pyindex e0d512fe26..6ce49bc45e 100644--- a/test/testcases/test_sdk_api/test_message_management/test_update_message_status.py+++ b/test/testcases/test_sdk_api/test_message_management/test_update_message_status.py@@ -53,7 +53,7 @@ class TestUpdateMessageStatus:updated_message_res = memory.get_message_content(message["message_id"])assert not updated_message_res["status"], str(updated_message_res)- @pytest.mark.p1+ @pytest.mark.p3def test_update_to_true(self, client):memory_id = self.memory_idmemory = Memory(client, {"id": memory_id})diff --git a/test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py b/test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.pyindex e730110c4d..ae996dc659 100644--- a/test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py+++ b/test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py@@ -88,7 +88,7 @@ class TestSessionWithChatAssistantDelete:pytest.param({"ids": ["invalid_id"]}, "The chat doesn't own the session invalid_id", 5, marks=pytest.mark.p3),pytest.param("not json", """AttributeError("\'str\' object has no attribute \'get\'")""", 5, marks=pytest.mark.skip),pytest.param(lambda r: {"ids": r[:1]}, "", 4, marks=pytest.mark.p3),- pytest.param(lambda r: {"ids": r}, "", 0, marks=pytest.mark.p1),+ pytest.param(lambda r: {"ids": r}, "", 0, marks=pytest.mark.p3),pytest.param({"ids": []}, "", 5, marks=pytest.mark.p3),],)diff --git a/test/unit_test/agent/component/test_excel_processor_output.py b/test/unit_test/agent/component/test_excel_processor_output.pyindex 53b9c5741b..7d80cead12 100644--- a/test/unit_test/agent/component/test_excel_processor_output.py+++ b/test/unit_test/agent/component/test_excel_processor_output.py@@ -21,6 +21,7 @@ from pathlib import Pathfrom types import ModuleType, SimpleNamespaceimport openpyxl+import pytestdef _load_excel_processor(monkeypatch):@@ -63,6 +64,7 @@ def _load_excel_processor(monkeypatch):return moduledef test_output_excel_sanitizes_and_deduplicates_sheet_names(monkeypatch):module = _load_excel_processor(monkeypatch)stored = {}diff --git a/test/unit_test/api/db/test_gaussdb_user_flow.py b/test/unit_test/api/db/test_gaussdb_user_flow.pyindex 0fa91528f1..c9135a1b5f 100644--- a/test/unit_test/api/db/test_gaussdb_user_flow.py+++ b/test/unit_test/api/db/test_gaussdb_user_flow.py@@ -74,6 +74,7 @@ print("gaussdb-adapter-ok")assert "gaussdb-adapter-ok" in result.stdoutdef test_gaussdb_empty_string_compatible_fields_are_nullable_only_for_gaussdb():"""Verify empty-string field behavior across supported metadata databases."""diff --git a/test/unit_test/data_source/test_rest_api_connector.py b/test/unit_test/data_source/test_rest_api_connector.pyindex 6b93dcf509..c11ef2c6e2 100644--- a/test/unit_test/data_source/test_rest_api_connector.py+++ b/test/unit_test/data_source/test_rest_api_connector.py@@ -215,6 +215,7 @@ class TestSSRFValidation:with pytest.raises(ConnectorValidationError, match="scheme"):_make_connector(url="file:///etc/passwd")+ @pytest.mark.p3def test_redirect_to_loopback_rejected(self):"""Redirect targets must be revalidated before they are fetched.@@ -267,6 +268,7 @@ class TestSSRFValidation:params={},)+ @pytest.mark.p3@patch("common.data_source.rest_api_connector.assert_url_is_safe")@patch("common.data_source.rest_api_connector.pin_dns")def test_post_307_preserves_body(self, mock_pin_dns, mock_safe):@@ -290,6 +292,7 @@ class TestSSRFValidation:assert mock_rl.post.call_args_list[1].kwargs["json"] == {"hello": "world"}assert mock_rl.post.call_args_list[1].kwargs["allow_redirects"] is False+ @pytest.mark.p3@patch("common.data_source.rest_api_connector.assert_url_is_safe")@patch("common.data_source.rest_api_connector.pin_dns")def test_exceeds_max_redirects_raises(self, mock_pin_dns, mock_safe):@@ -680,6 +683,7 @@ class TestNonRetriableErrors:with pytest.raises(ConnectorValidationError, match="non-retriable"):c._fetch_page({})+ @pytest.mark.p3def test_500_triggers_retry(self):"""500 should raise HTTPError (which the retry decorator catches)."""with _mocked_rest_api_requests_and_dns() as mock_rl:@@ -689,6 +693,7 @@ class TestNonRetriableErrors:with pytest.raises(requests.HTTPError):c._fetch_page({})+ @pytest.mark.p3def test_429_triggers_retry(self):"""429 should raise HTTPError (retriable, not ConnectorValidationError)."""with _mocked_rest_api_requests_and_dns() as mock_rl: