MCPcopy Index your code
hub / github.com/python/mypy / test_capture_help

Method test_capture_help

mypy/test/testapi.py:35–39  ·  view source on GitHub ↗

stdout should be captured when --help is passed.

(self)

Source from the content-addressed store, hash-verified

33 assert stderr != ""
34
35 def test_capture_help(self) -> None:
36 """stdout should be captured when --help is passed."""
37 stdout, _, _ = mypy.api.run(["--help"])
38 assert isinstance(stdout, str)
39 assert stdout != ""
40
41 def test_capture_version(self) -> None:
42 """stdout should be captured when --version is passed."""

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected