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