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

Function test_parse_args_normalize_path

tests/unit/test_option_manager.py:108–116  ·  view source on GitHub ↗

Show that parse_args handles path normalization.

(optmanager)

Source from the content-addressed store, hash-verified

106
107
108def test_parse_args_normalize_path(optmanager):
109 """Show that parse_args handles path normalization."""
110 assert optmanager.options == []
111 assert optmanager.config_options_dict == {}
112
113 optmanager.add_option("--config", normalize_paths=True)
114
115 options = optmanager.parse_args(["--config", "../config.ini"])
116 assert options.config == os.path.abspath("../config.ini")
117
118
119def test_parse_args_handles_comma_separated_defaults(optmanager):

Callers

nothing calls this directly

Calls 2

add_optionMethod · 0.80
parse_argsMethod · 0.80

Tested by

no test coverage detected