(request: FixtureRequest)
| 33 | |
| 34 | @pytest.fixture(scope="session") |
| 35 | def client(request: FixtureRequest) -> Iterator[Anthropic]: |
| 36 | strict = getattr(request, "param", True) |
| 37 | if not isinstance(strict, bool): |
| 38 | raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}") |
| 39 | |
| 40 | with Anthropic(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client: |
| 41 | yield client |
| 42 | |
| 43 | |
| 44 | @pytest.fixture(scope="session") |