| 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 |