From 91255cd002bf65c99ea7931c3f4cda3e775b09e6 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Tue, 27 Feb 2018 09:26:38 -0500 Subject: 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 --- tests/test_parsing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_parsing.py') 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, -- cgit v1.2.1