From 35ec62b1f8dc9a3de397cdcd9cdd66cd2c381f0e Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 10 Jul 2019 21:21:03 -0400 Subject: Restore self.statement_parser to a public attribute in cmd2.Cmd --- tests/test_completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_completion.py') diff --git a/tests/test_completion.py b/tests/test_completion.py index eea34ba6..5cfc741c 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -703,7 +703,7 @@ def test_tokens_for_completion_quoted_redirect(cmd2_app): endidx = len(line) begidx = endidx - len(text) - cmd2_app._statement_parser.redirection = True + cmd2_app.statement_parser.redirection = True expected_tokens = ['command', '>file'] expected_raw_tokens = ['command', '">file'] @@ -717,7 +717,7 @@ def test_tokens_for_completion_redirect_off(cmd2_app): endidx = len(line) begidx = endidx - len(text) - cmd2_app._statement_parser.allow_redirection = False + cmd2_app.statement_parser.allow_redirection = False expected_tokens = ['command', '>file'] expected_raw_tokens = ['command', '>file'] -- cgit v1.2.1