summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-20 20:46:01 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-20 20:46:01 -0400
commitfb9fe3681be570455590e09cc8a4a9ff0e4821c2 (patch)
tree541a6d0120a2737ac759f3b902b9efbb2cdcd00e /tests
parentd1fb8f7437629a83c35441fb8485a03f5accc4d6 (diff)
downloadcmd2-git-fb9fe3681be570455590e09cc8a4a9ff0e4821c2.tar.gz
Simplified a unit test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_history.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_history.py b/tests/test_history.py
index 36794d0c..105dead9 100644
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -237,9 +237,8 @@ def test_history_with_span_index_error(base_app):
run_cmd(base_app, 'help')
run_cmd(base_app, 'help history')
run_cmd(base_app, '!ls -hal :')
-
- out, err = run_cmd(base_app, 'history "hal :"')
- assert "ValueError" in err[0]
+ with pytest.raises(ValueError):
+ base_app.onecmd('history "hal :"')
def test_history_output_file(base_app):
run_cmd(base_app, 'help')