MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_copy

Method test_copy

tests/test_client.py:206–212  ·  view source on GitHub ↗
(self, client: Anthropic)

Source from the content-addressed store, hash-verified

204 assert response.json() == {"foo": "bar"}
205
206 def test_copy(self, client: Anthropic) -> None:
207 copied = client.copy()
208 assert id(copied) != id(client)
209
210 copied = client.copy(api_key="another my-anthropic-api-key")
211 assert copied.api_key == "another my-anthropic-api-key"
212 assert client.api_key == "my-anthropic-api-key"
213
214 def test_copy_default_options(self, client: Anthropic) -> None:
215 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected