(request: FixtureRequest)
| 63 | |
| 64 | @pytest.fixture(scope="session") |
| 65 | def client(request: FixtureRequest) -> Iterator[Anthropic]: |
| 66 | strict = getattr(request, "param", True) |
| 67 | if not isinstance(strict, bool): |
| 68 | raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}") |
| 69 | |
| 70 | with Anthropic(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client: |
| 71 | yield client |
| 72 | |
| 73 | |
| 74 | @pytest.fixture |