summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-03-16 12:25:34 -0400
committerEric Lin <anselor@gmail.com>2021-03-18 14:16:03 -0400
commit0cd626ebbef273aa78c2d1154ebdd5f9055028cf (patch)
tree9a822b245312b3b515b64a69d772fab75fce8121 /tests/test_completion.py
parenta649286b9468ebadbafeca1abf20a946351ceefe (diff)
downloadcmd2-git-cmdset_settables.tar.gz
Resolves comments from PRcmdset_settables
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-xtests/test_completion.py8
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):