(tmp_path)
| 417 | |
| 418 | |
| 419 | def 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")) |
nothing calls this directly
no outgoing calls
no test coverage detected