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

Method test_get_platform

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

Source from the content-addressed store, hash-verified

3378 assert seen == [{"variant": "b"}, {"variant": "b"}]
3379
3380 async def test_get_platform(self) -> None:
3381 platform = await asyncify(get_platform)()
3382 assert isinstance(platform, (str, OtherPlatform))
3383
3384 def test_platform_headers_do_not_spawn_subprocesses(self, monkeypatch: pytest.MonkeyPatch) -> None:
3385 # 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