MCPcopy
hub / github.com/python/mypy / test_missing_stubs

Method test_missing_stubs

mypy/test/teststubtest.py:3109–3117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3107 )
3108
3109 def test_missing_stubs(self) -> None:
3110 output = io.StringIO()
3111 with contextlib.redirect_stdout(output):
3112 test_stubs(parse_options(["not_a_module"]))
3113 assert remove_color_code(output.getvalue()) == (
3114 "error: not_a_module failed to find stubs\n"
3115 "Stub:\nMISSING\nRuntime:\nN/A\n\n"
3116 "Found 1 error (checked 1 module)\n"
3117 )
3118
3119 def test_only_py(self) -> None:
3120 # in this case, stubtest will check the py against itself

Callers

nothing calls this directly

Calls 3

test_stubsFunction · 0.90
parse_optionsFunction · 0.90
remove_color_codeFunction · 0.85

Tested by

no test coverage detected