(request: FixtureRequest)
| 77 | |
| 78 | @pytest.fixture(scope="session") |
| 79 | def client(request: FixtureRequest) -> Iterator[Anthropic]: |
| 80 | strict = getattr(request, "param", True) |
| 81 | if not isinstance(strict, bool): |
| 82 | raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}") |
| 83 | |
| 84 | with Anthropic(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client: |
| 85 | yield client |
| 86 | |
| 87 | |
| 88 | @pytest.fixture |