MCPcopy
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_client

Function test_client

tests/utils/copy_utils_test.py:158–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156
157
158def test_client():
159 llm_instance_config = {
160 "model": "moonshot-v1-8k",
161 "base_url": "https://api.moonshot.cn/v1",
162 "moonshot_api_key": "xxx",
163 }
164
165 from langchain_community.chat_models.moonshot import MoonshotChat
166
167 llm_model_instance = MoonshotChat(**llm_instance_config)
168 copy_obj = safe_deepcopy(llm_model_instance)
169
170 assert copy_obj
171 assert hasattr(copy_obj, "callbacks")
172
173
174def test_circular_reference_in_dict():

Callers

nothing calls this directly

Calls 1

safe_deepcopyFunction · 0.90

Tested by

no test coverage detected