load
Read a cassette from disk, ready to replay.
load("wallet.json").client() is an httpx.Client that answers
from the recording and never opens a socket. Pass it to any source in
place of a live client.
Validation is EAGER: a missing file, invalid JSON, a missing
interactions list, a malformed interaction and a response carrying
both json and text all raise CassetteError here, rather
than on the request that happens to reach the bad entry. A fixture is
either usable or it says so before your test starts.
Recorder is how you make one from a live service.
Parameters
pathrequired, str | Pathnone
Raises
Returns
Cassette