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

Method test_copy

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

Source from the content-addressed store, hash-verified

947 assert response.json() == {"foo": "bar"}
948
949 def test_copy(self) -> None:
950 copied = self.client.copy()
951 assert id(copied) != id(self.client)
952
953 copied = self.client.copy(api_key="another my-anthropic-api-key")
954 assert copied.api_key == "another my-anthropic-api-key"
955 assert self.client.api_key == "my-anthropic-api-key"
956
957 def test_copy_default_options(self) -> None:
958 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected