MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / test_unsupported_platform_raises

Function test_unsupported_platform_raises

python/tests/test_locate.py:67–72  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

65
66
67def test_unsupported_platform_raises(monkeypatch) -> None:
68 monkeypatch.delenv("CMDOP_CORE_BINARY", raising=False)
69 monkeypatch.setattr(_locate.sys, "platform", "freebsd")
70 monkeypatch.setattr(_locate.platform, "machine", lambda: "x86_64")
71 with pytest.raises(FileNotFoundError, match="no prebuilt binary"):
72 locate_binary()

Callers

nothing calls this directly

Calls 1

locate_binaryFunction · 0.90

Tested by

no test coverage detected