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

Method test_no_config

mypy/test/test_config_parser.py:38–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36class FindConfigFileSuite(unittest.TestCase):
37
38 def test_no_config(self) -> None:
39 with tempfile.TemporaryDirectory() as _tmpdir:
40 tmpdir = Path(_tmpdir)
41 (tmpdir / ".git").touch()
42 with chdir(tmpdir):
43 result = _find_config_file()
44 assert result is None
45
46 def test_parent_config_with_and_without_git(self) -> None:
47 for name in CONFIG_NAMES + SHARED_CONFIG_NAMES:

Callers

nothing calls this directly

Calls 2

_find_config_fileFunction · 0.90
chdirFunction · 0.85

Tested by

no test coverage detected