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

Method test_copy

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

Source from the content-addressed store, hash-verified

1612 assert response.json() == {"foo": "bar"}
1613
1614 def test_copy(self, async_client: AsyncAnthropic) -> None:
1615 copied = async_client.copy()
1616 assert id(copied) != id(async_client)
1617
1618 copied = async_client.copy(api_key="another my-anthropic-api-key")
1619 assert copied.api_key == "another my-anthropic-api-key"
1620 assert async_client.api_key == "my-anthropic-api-key"
1621
1622 def test_copy_default_options(self, async_client: AsyncAnthropic) -> None:
1623 # options that have a default are overridden correctly

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected