MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_parse_enabled_from_commandline

Function test_parse_enabled_from_commandline

tests/unit/plugins/finder_test.py:419–429  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

417
418
419def test_parse_enabled_from_commandline(tmp_path):
420 cfg = configparser.RawConfigParser()
421 cfg.add_section("flake8")
422 cfg.set("flake8", "enable_extensions", "A,B,C")
423 opts = finder.parse_plugin_options(
424 cfg,
425 str(tmp_path),
426 enable_extensions="D,E,F",
427 require_plugins=None,
428 )
429 assert opts.enable_extensions == frozenset(("D", "E", "F"))
430
431
432@pytest.mark.parametrize("opt", ("enable_extensions", "enable-extensions"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected