Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(test): register baidu_obs mock as pytest plugin (#35618)

L1nSn0w0c280ef70854
diff --git a/api/tests/unit_tests/oss/baidu_obs/test_baidu_obs.py b/api/tests/unit_tests/oss/baidu_obs/test_baidu_obs.py
index 18ac762db8b..053f8112641 100644
--- a/api/tests/unit_tests/oss/baidu_obs/test_baidu_obs.py
+++ b/api/tests/unit_tests/oss/baidu_obs/test_baidu_obs.py
@@ -5,12 +5,13 @@ from baidubce.auth.bce_credentials import BceCredentials
from baidubce.bce_client_configuration import BceClientConfiguration
from extensions.storage.baidu_obs_storage import BaiduObsStorage
-from tests.unit_tests.oss.__mock.baidu_obs import setup_baidu_obs_mock
from tests.unit_tests.oss.__mock.base import (
BaseStorageTest,
get_example_bucket,
)
+pytest_plugins = ("tests.unit_tests.oss.__mock.baidu_obs",)
+
class TestBaiduObs(BaseStorageTest):
@pytest.fixture(autouse=True)