summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-15 15:00:59 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-15 15:00:59 -0400
commit70bf9e1a12b89bb913c11fb07893ab4b9cab2576 (patch)
tree27bb62898d635bcaa8e6e8182d52f5105210b3f6 /tests/test_cmd2.py
parentc12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (diff)
downloadcmd2-git-70bf9e1a12b89bb913c11fb07893ab4b9cab2576.tar.gz
Began work to minimize public API
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 77542d76..7bb0ff75 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -112,7 +112,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
@@ -524,7 +524,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'
@@ -1291,7 +1291,7 @@ def test_multiline_input_line_to_statement(multiline_app):
def test_clipboard_failure(base_app, capsys):
# Force cmd2 clipboard to be disabled
- base_app.can_clip = False
+ base_app._can_clip = False
# Redirect command output to the clipboard when a clipboard isn't present
base_app.onecmd_plus_hooks('help > ')
@@ -1840,7 +1840,7 @@ def test_ppaged_strips_color_when_redirecting(outsim_app):
msg = 'testing...'
end = '\n'
outsim_app.colors = cmd2.constants.COLORS_TERMINAL
- outsim_app.redirecting = True
+ outsim_app._redirecting = True
outsim_app.ppaged(Fore.RED + msg)
out = outsim_app.stdout.getvalue()
assert out == msg + end
@@ -1849,7 +1849,7 @@ def test_ppaged_strips_color_when_redirecting_if_always(outsim_app):
msg = 'testing...'
end = '\n'
outsim_app.colors = cmd2.constants.COLORS_ALWAYS
- outsim_app.redirecting = True
+ outsim_app._redirecting = True
outsim_app.ppaged(Fore.RED + msg)
out = outsim_app.stdout.getvalue()
assert out == Fore.RED + msg + end