(self, client: Anthropic)
| 204 | assert response.json() == {"foo": "bar"} |
| 205 | |
| 206 | def test_copy(self, client: Anthropic) -> None: |
| 207 | copied = client.copy() |
| 208 | assert id(copied) != id(client) |
| 209 | |
| 210 | copied = client.copy(api_key="another my-anthropic-api-key") |
| 211 | assert copied.api_key == "another my-anthropic-api-key" |
| 212 | assert client.api_key == "my-anthropic-api-key" |
| 213 | |
| 214 | def test_copy_default_options(self, client: Anthropic) -> None: |
| 215 | # options that have a default are overridden correctly |