MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / test_get_npx_unix_like

Function test_get_npx_unix_like

tests/cli/test_utils.py:91–94  ·  view source on GitHub ↗

Should return "npx" on unix-like systems.

(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

89
90
91def test_get_npx_unix_like(monkeypatch: pytest.MonkeyPatch):
92 """Should return "npx" on unix-like systems."""
93 monkeypatch.setattr(sys, "platform", "linux")
94 assert _get_npx_command() == "npx"
95
96
97def test_get_npx_windows(monkeypatch: pytest.MonkeyPatch):

Callers

nothing calls this directly

Calls 1

_get_npx_commandFunction · 0.90

Tested by

no test coverage detected