summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-01-22 16:13:05 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-01-22 16:13:05 -0500
commitb2c7113bc74c802bc8822dd1f0659339e8147380 (patch)
tree3174c0758dc767fbadcce79c9b4f674d7044bc74 /tests/test_cmd2.py
parent45580056485328338899dd65607c6c57d3797f35 (diff)
downloadcmd2-git-b2c7113bc74c802bc8822dd1f0659339e8147380.tar.gz
Removed --silent flag from alias/macro create since startup scripts can be run silently.
Removed --with_silent flag from alias/macro list since startup scripts can be run silently.
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-xtests/test_cmd2.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index f9109a23..bba5a43e 100755
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1676,13 +1676,6 @@ def test_alias_create(base_app):
out, err = run_cmd(base_app, 'alias list fake')
assert out == normalize('alias create fake help')
- # Test silent flag
- out, err = run_cmd(base_app, 'alias create --silent fake set')
- assert not out
-
- out, err = run_cmd(base_app, 'alias list --with_silent fake')
- assert out == normalize('alias create --silent fake set')
-
def test_alias_create_with_quoted_tokens(base_app):
"""Demonstrate that quotes in alias value will be preserved"""
create_command = 'alias create fake help ">" "out file.txt" ";"'
@@ -1786,13 +1779,6 @@ def test_macro_create(base_app):
out, err = run_cmd(base_app, 'macro list fake')
assert out == normalize('macro create fake help')
- # Test silent flag
- out, err = run_cmd(base_app, 'macro create --silent fake set')
- assert not out
-
- out, err = run_cmd(base_app, 'macro list --with_silent fake')
- assert out == normalize('macro create --silent fake set')
-
def test_macro_create_with_quoted_tokens(base_app):
"""Demonstrate that quotes in macro value will be preserved"""
create_command = 'macro create fake help ">" "out file.txt" ";"'