mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
Handle when dest is provided to Option
This commit is contained in:
parent
a4042d6d69
commit
a7f7bbbeb2
2 changed files with 9 additions and 1 deletions
|
|
@ -57,3 +57,8 @@ def test_config_name_needs_long_option_name():
|
|||
"""Show that we error out if the Option should be parsed from config."""
|
||||
with pytest.raises(ValueError):
|
||||
manager.Option('-s', parse_from_config=True)
|
||||
|
||||
|
||||
def test_dest_is_not_overridden():
|
||||
opt = manager.Option('-s', '--short', dest='something_not_short')
|
||||
assert opt.dest == 'something_not_short'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue