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

Method test_copy

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

Source from the content-addressed store, hash-verified

167 assert response.json() == {"foo": "bar"}
168
169 def test_copy(self, client: Anthropic) -> None:
170 copied = client.copy()
171 assert id(copied) != id(client)
172
173 copied = client.copy(api_key="another my-anthropic-api-key")
174 assert copied.api_key == "another my-anthropic-api-key"
175 assert client.api_key == "my-anthropic-api-key"
176
177 def test_copy_default_options(self, client: Anthropic) -> None:
178 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected