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

Method test_copy

tests/test_client.py:1651–1657  ·  view source on GitHub ↗
(self, async_client: AsyncAnthropic)

Source from the content-addressed store, hash-verified

1649 assert response.json() == {"foo": "bar"}
1650
1651 def test_copy(self, async_client: AsyncAnthropic) -> None:
1652 copied = async_client.copy()
1653 assert id(copied) != id(async_client)
1654
1655 copied = async_client.copy(api_key="another my-anthropic-api-key")
1656 assert copied.api_key == "another my-anthropic-api-key"
1657 assert async_client.api_key == "my-anthropic-api-key"
1658
1659 def test_copy_default_options(self, async_client: AsyncAnthropic) -> None:
1660 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected