Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

test: update config snapshot isolation assertion

zhongqinghua2bf4cc73c7230
diff --git a/tests/unit_tests/agentserver/test_deep_adapter_lazy_root_instance.py b/tests/unit_tests/agentserver/test_deep_adapter_lazy_root_instance.py
index 58610b53a8..f913bf84a3 100644
--- a/tests/unit_tests/agentserver/test_deep_adapter_lazy_root_instance.py
+++ b/tests/unit_tests/agentserver/test_deep_adapter_lazy_root_instance.py
@@ -142,7 +142,10 @@ def test_instance_config_base_falls_back_to_native_config(monkeypatch: pytest.Mo
disk_config = {"models": {"defaults": [{"model": "disk-model"}]}}
monkeypatch.setattr(interface_deep_module, "get_config", lambda: disk_config)
- assert interface_deep_module._resolve_instance_config_base(None) is disk_config
+ resolved = interface_deep_module._resolve_instance_config_base(None)
+ assert resolved == disk_config
+ assert resolved is not disk_config
+ assert resolved["models"] is not disk_config["models"]
@pytest.mark.asyncio