(self, client: Anthropic)
| 167 | assert response.json() == {"foo": "bar"} |
| 168 | |
| 169 | def test_copy(self, client: Anthropic) -> None: |
| 170 | copied = client.copy() |
| 171 | assert id(copied) != id(client) |
| 172 | |
| 173 | copied = client.copy(api_key="another my-anthropic-api-key") |
| 174 | assert copied.api_key == "another my-anthropic-api-key" |
| 175 | assert client.api_key == "my-anthropic-api-key" |
| 176 | |
| 177 | def test_copy_default_options(self, client: Anthropic) -> None: |
| 178 | # options that have a default are overridden correctly |