summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-02-27 09:26:38 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-02-27 09:26:38 -0500
commit91255cd002bf65c99ea7931c3f4cda3e775b09e6 (patch)
tree8a81fd05667659955e20b98ff015dbfebd87dee2 /tests
parentab03d90c387ff6796d48b2a949b5a86b5a45f62a (diff)
downloadcmd2-git-91255cd002bf65c99ea7931c3f4cda3e775b09e6.tar.gz
Revert to old attribute names for multilineCommands and excludeFromHistory to prevent breaking change
Also: - Reverted multilineCommands and shortcuts to class variables to prevent other breaking changes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parsing.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index 561b48ec..5a741b57 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -24,9 +24,9 @@ def hist():
@pytest.fixture
def parser():
c = cmd2.Cmd()
- c.multiline_commands = ['multiline']
+ c.multilineCommands = ['multiline']
c.case_insensitive = True
- c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multiline_commands,
+ c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multilineCommands,
legalChars=c.legalChars, commentGrammars=c.commentGrammars,
commentInProgress=c.commentInProgress, case_insensitive=c.case_insensitive,
blankLinesAllowed=c.blankLinesAllowed, prefixParser=c.prefixParser,
@@ -37,9 +37,9 @@ def parser():
@pytest.fixture
def ci_pm():
c = cmd2.Cmd()
- c.multiline_commands = ['multiline']
+ c.multilineCommands = ['multiline']
c.case_insensitive = True
- c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multiline_commands,
+ c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multilineCommands,
legalChars=c.legalChars, commentGrammars=c.commentGrammars,
commentInProgress=c.commentInProgress, case_insensitive=c.case_insensitive,
blankLinesAllowed=c.blankLinesAllowed, prefixParser=c.prefixParser,
@@ -50,9 +50,9 @@ def ci_pm():
@pytest.fixture
def cs_pm():
c = cmd2.Cmd()
- c.multiline_commands = ['multiline']
+ c.multilineCommands = ['multiline']
c.case_insensitive = False
- c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multiline_commands,
+ c.parser_manager = cmd2.ParserManager(redirector=c.redirector, terminators=c.terminators, multilineCommands=c.multilineCommands,
legalChars=c.legalChars, commentGrammars=c.commentGrammars,
commentInProgress=c.commentInProgress, case_insensitive=c.case_insensitive,
blankLinesAllowed=c.blankLinesAllowed, prefixParser=c.prefixParser,