diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-11 13:53:45 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-11 13:53:45 -0400 |
commit | 6cf0237abda400d60dad8fa42a22a927e943d0eb (patch) | |
tree | e5e6b1bad4f90566e329dff62d1590cb00df8a84 /tests | |
parent | ca89266546d93b993cc3e48935b62de08332c3a0 (diff) | |
parent | 8109e70b0442206103fa5fe1a3af79d1851d7ec1 (diff) | |
download | cmd2-git-6cf0237abda400d60dad8fa42a22a927e943d0eb.tar.gz |
Merge branch 'master' into auto_completer_refactor
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmd2.py | 4 | ||||
-rw-r--r-- | tests/test_completion.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index f1d366f7..1bdbea5f 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -109,7 +109,7 @@ def test_base_show_readonly(base_app): expected = normalize(SHOW_TXT + '\nRead only settings:' + """ Commands may be terminated with: {} Output redirection and pipes allowed: {} -""".format(base_app._statement_parser.terminators, base_app.allow_redirection)) +""".format(base_app.statement_parser.terminators, base_app.allow_redirection)) assert out == expected @@ -532,7 +532,7 @@ def test_feedback_to_output_false(base_app): def test_disallow_redirection(base_app): # Set allow_redirection to False - base_app._statement_parser.allow_redirection = False + base_app.statement_parser.allow_redirection = False filename = 'test_allow_redirect.txt' diff --git a/tests/test_completion.py b/tests/test_completion.py index 03208a88..1411cc49 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'] |