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_cmd2.py | |
| parent | 9d1b7c7f1068ce9b55ba160ebceeadd665d1bc02 (diff) | |
| download | cmd2-git-8f981f37eddcccc919329245b85fd44d5975a6a7.tar.gz | |
Resolves comments from PR
Diffstat (limited to 'tests/test_cmd2.py')
| -rwxr-xr-x | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index f3c44bd4..91815d50 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -214,7 +214,7 @@ def test_set_allow_style(base_app, new_val, is_valid, expected): class OnChangeHookApp(cmd2.Cmd): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.add_settable(utils.Settable('quiet', bool, "my description", onchange_cb=self._onchange_quiet)) + self.add_settable(utils.Settable('quiet', bool, "my description", self, onchange_cb=self._onchange_quiet)) def _onchange_quiet(self, name, old, new) -> None: """Runs when quiet is changed via set command""" |
