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

Method test_coherence

mypy/test/testargs.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class ArgSuite(Suite):
20 def test_coherence(self) -> None:
21 options = Options()
22 _, parsed_options = process_options([], require_targets=False)
23 # FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg'
24 options.config_file = parsed_options.config_file
25 assert options.snapshot() == parsed_options.snapshot()
26
27 def test_executable_inference(self) -> None:
28 """Test the --python-executable flag with --python-version"""

Callers

nothing calls this directly

Calls 3

snapshotMethod · 0.95
OptionsClass · 0.90
process_optionsFunction · 0.90

Tested by

no test coverage detected