Skip to content

Commit 2b2f51f

Browse files
committed
Add test to cover a few more lines of code
1 parent 160b755 commit 2b2f51f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_cmd2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,3 +3393,9 @@ def test_multiline_complete_statement_keyboard_interrupt(multiline_app, monkeypa
33933393
multiline_app._complete_statement('orate incomplete')
33943394

33953395
poutput_mock.assert_called_with('^C')
3396+
3397+
3398+
def test_complete_optional_args_defaults(base_app) -> None:
3399+
# Test that complete can be called with just text and state
3400+
complete_val = base_app.complete('test', 0)
3401+
assert complete_val is None

0 commit comments

Comments
 (0)