summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-29 13:05:36 -0400
committerGitHub <noreply@github.com>2017-06-29 13:05:36 -0400
commit0e1093fc05a45e613192d54da806d924a7f52d95 (patch)
tree6a639c683964eb02f385108ae783a1582a444ecd /tests/test_transcript.py
parentd724287da75503c9d5197135d69ee49d8df52e77 (diff)
parentd717ea7966574dfec85bcc057f7abe5579c5c121 (diff)
downloadcmd2-git-0e1093fc05a45e613192d54da806d924a7f52d95.tar.gz
Merge pull request #148 from python-cmd2/refactor_StubbornDict
Refactored to replace custom StubbornDict with collections.OrderedDict
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 4b6f4c99..a31ebd17 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -20,14 +20,16 @@ from conftest import run_cmd, StdOut, normalize
class CmdLineApp(Cmd):
- multilineCommands = ['orate']
- maxrepeats = 3
- redirector = '->'
-
def __init__(self, *args, **kwargs):
+ self.multilineCommands = ['orate']
+ self.maxrepeats = 3
+ self.redirector = '->'
+
+ # Add stuff to settable and/or shortcuts before calling base class initializer
+ self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed'
+
# Need to use this older form of invoking super class constructor to support Python 2.x and Python 3.x
Cmd.__init__(self, *args, **kwargs)
- self.settable.append('maxrepeats Max number of `--repeat`s allowed')
# Configure how arguments are parsed for @options commands
set_posix_shlex(False)