diff options
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-x | tests/test_completion.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 0635bb48..cde77b93 100755 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -67,7 +67,13 @@ class CompletionsExample(cmd2.Cmd): cmd2.Cmd.__init__(self, multiline_commands=['test_multiline']) self.foo = 'bar' self.add_settable( - utils.Settable('foo', str, description="a settable param", completer=CompletionsExample.complete_foo_val) + utils.Settable( + 'foo', + str, + description="a settable param", + settable_object=self, + completer=CompletionsExample.complete_foo_val, + ) ) def do_test_basic(self, args): |