(
is_recording: bool,
http_snapshot_serializer_options: SnapshotSerializerOptions,
http_snapshot: inline_snapshot.Snapshot[Any],
)
| 109 | |
| 110 | @pytest.fixture(scope="function") |
| 111 | async def async_snapshot_client( |
| 112 | is_recording: bool, |
| 113 | http_snapshot_serializer_options: SnapshotSerializerOptions, |
| 114 | http_snapshot: inline_snapshot.Snapshot[Any], |
| 115 | ) -> AsyncIterator[AsyncAnthropic]: |
| 116 | async with HttpxAsyncSnapshotClient( |
| 117 | http_snapshot, is_recording, serializer_options=http_snapshot_serializer_options |
| 118 | ) as snapshot_client: |
| 119 | client = AsyncAnthropic(http_client=snapshot_client, api_key=None if is_recording else api_key) |
| 120 | yield client |
| 121 | |
| 122 | |
| 123 | @pytest.fixture(scope="session") |
nothing calls this directly
no test coverage detected