Show that parse_args handles path normalization.
(optmanager)
| 106 | |
| 107 | |
| 108 | def 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 | |
| 119 | def test_parse_args_handles_comma_separated_defaults(optmanager): |
nothing calls this directly
no test coverage detected