summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-23 21:11:01 -0400
committerGitHub <noreply@github.com>2019-06-23 21:11:01 -0400
commitbef07746e33da9def33d814913891384a545a95c (patch)
tree86b162f79663f70cbe88e64deb4cecb93106ba68 /tests/test_completion.py
parentc12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (diff)
parenteb1936e568a2ca4817ab0cd640220a5bc355e226 (diff)
downloadcmd2-git-bef07746e33da9def33d814913891384a545a95c.tar.gz
Merge pull request #703 from python-cmd2/public_api
Minimize public API of cmd2.Cmd class
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 91519b0a..9157ce84 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -375,7 +375,7 @@ def test_default_to_shell_completion(cmd2_app, request):
command = 'egrep'
# Make sure the command is on the testing system
- assert command in cmd2_app.get_exes_in_path(command)
+ assert command in utils.get_exes_in_path(command)
line = '{} {}'.format(command, text)
endidx = len(line)
@@ -695,7 +695,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']
@@ -709,7 +709,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']