summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-04 19:25:02 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-04 19:25:02 -0500
commit4bec7b5f7861d0a7e12a6abf32004b5ffaf565ee (patch)
treea7100fa8669449c754cf8c6f235b4bbeeb467464 /tests/conftest.py
parent4ad08851a03171c747d7f071355ec7ad64bc1e78 (diff)
downloadcmd2-git-4bec7b5f7861d0a7e12a6abf32004b5ffaf565ee.tar.gz
Added unit test for "show -l".
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 64cdfd2e..a2f79579 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -57,6 +57,7 @@ continuation_prompt: >
debug: False
default_file_name: command.txt
echo: False
+editor: vim
feedback_to_output: False
prompt: (Cmd)
quiet: False
@@ -64,6 +65,21 @@ timing: False
""".format(expect_colors)
+SHOW_LONG = """abbrev: True # Accept abbreviated commands
+case_insensitive: True # upper- and lower-case both OK
+colors: True # Colorized output (*nix only)
+continuation_prompt: > # On 2nd+ line of input
+debug: False # Show full error stack on error
+default_file_name: command.txt # for ``save``, ``load``, etc.
+echo: False # Echo command issued into output
+editor: vim # Program used by ``edit``
+feedback_to_output: False # include nonessentials in `|`, `>` results
+prompt: (Cmd) #
+quiet: False # Don't print nonessential feedback
+timing: False # Report execution times
+"""
+
+
class StdOut(object):
""" Toy class for replacing self.stdout in cmd2.Cmd instances fror unit testing. """
def __init__(self):