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

Method test_copy

tests/test_client.py:84–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 assert response.json() == {"foo": "bar"}
83
84 def test_copy(self) -> None:
85 copied = self.client.copy()
86 assert id(copied) != id(self.client)
87
88 copied = self.client.copy(api_key="another my-anthropic-api-key")
89 assert copied.api_key == "another my-anthropic-api-key"
90 assert self.client.api_key == "my-anthropic-api-key"
91
92 def test_copy_default_options(self) -> None:
93 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected