Add test for completion count in cmdutils.register
This commit is contained in:
parent
9ca5acd546
commit
49fb981e7f
@ -173,6 +173,13 @@ class TestRegister:
|
||||
pass
|
||||
assert cmdutils.cmd_dict['fun'].hide
|
||||
|
||||
def test_wrong_completion_count(self):
|
||||
with pytest.raises(ValueError):
|
||||
@cmdutils.register(completion=['one', 'two'])
|
||||
def fun(arg):
|
||||
"""Blah."""
|
||||
pass
|
||||
|
||||
def test_star_args(self):
|
||||
"""Check handling of *args"""
|
||||
@cmdutils.register()
|
||||
|
Loading…
Reference in New Issue
Block a user