MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / load_fixture

Function load_fixture

tests/lib/streaming/helpers.py:10–15  ·  view source on GitHub ↗

Load a fixture file from the fixtures directory.

(fixture_name: str)

Source from the content-addressed store, hash-verified

8
9
10def load_fixture(fixture_name: str) -> str:
11 """Load a fixture file from the fixtures directory."""
12 current_dir = os.path.dirname(os.path.abspath(__file__))
13 fixtures_dir = os.path.join(current_dir, "fixtures")
14 with open(os.path.join(fixtures_dir, fixture_name), "r") as f:
15 return f.read()
16
17
18def get_response(fixture_name: str) -> Iterator[bytes]:

Callers 1

get_responseFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected