diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-01-22 16:13:05 -0500 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-01-22 16:13:05 -0500 |
| commit | b2c7113bc74c802bc8822dd1f0659339e8147380 (patch) | |
| tree | 3174c0758dc767fbadcce79c9b4f674d7044bc74 /tests/test_cmd2.py | |
| parent | 45580056485328338899dd65607c6c57d3797f35 (diff) | |
| download | cmd2-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-x | tests/test_cmd2.py | 14 |
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" ";"' |
