From 88b45e12b0c2c9e7f8e386504f2d6808f396560b Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 13 Mar 2019 23:33:58 -0400 Subject: First stage of attribute refactoring The following are now arguments to cmd2.Cmd.__init__() instead of class attributes: * allow_redirection * multiline_commands * terminators * shortcuts Added a couple read-only properties for convenience of cmd2.Cmd accessing immutable members from self.statement_parser --- tests/test_transcript.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index f93642b8..4a03ebe0 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -29,10 +29,9 @@ class CmdLineApp(cmd2.Cmd): MUMBLE_LAST = ['right?'] def __init__(self, *args, **kwargs): - self.multiline_commands = ['orate'] self.maxrepeats = 3 - super().__init__(*args, **kwargs) + super().__init__(*args, multiline_commands=['orate'], **kwargs) # Make maxrepeats settable at runtime self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed' -- cgit v1.2.1