diff options
author | Eric Lin <anselor@gmail.com> | 2021-03-16 12:25:34 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2021-03-18 14:16:03 -0400 |
commit | 0cd626ebbef273aa78c2d1154ebdd5f9055028cf (patch) | |
tree | 9a822b245312b3b515b64a69d772fab75fce8121 /tests/test_completion.py | |
parent | a649286b9468ebadbafeca1abf20a946351ceefe (diff) | |
download | cmd2-git-cmdset_settables.tar.gz |
Resolves comments from PRcmdset_settables
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): |