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