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

Method test_get_platform

tests/test_client.py:2972–2974  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2970 assert seen == [{"variant": "b"}, {"variant": "b"}]
2971
2972 async def test_get_platform(self) -> None:
2973 platform = await asyncify(get_platform)()
2974 assert isinstance(platform, (str, OtherPlatform))
2975
2976 def test_platform_headers_do_not_spawn_subprocesses(self, monkeypatch: pytest.MonkeyPatch) -> None:
2977 # a cold process resolves `platform.uname().processor` lazily by running `uname -p`

Callers

nothing calls this directly

Calls 1

asyncifyFunction · 0.90

Tested by

no test coverage detected