diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 00:34:16 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 00:34:16 -0400 |
commit | 4e949387d6424b3f3d860c9fe0890d83acd58d09 (patch) | |
tree | ae22a0704f4349be68ddf6cf1ba26dd8efbc3b6a /tests/test_cmd2.py | |
parent | 15e722792f13d98e7276554ff82258f234b630cf (diff) | |
download | cmd2-git-4e949387d6424b3f3d860c9fe0890d83acd58d09.tar.gz |
Ported pyscript to argparse
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 7e2c9fc6..5ee0d26b 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -247,7 +247,7 @@ def test_pyscript_with_exception(base_app, capsys, request): def test_pyscript_requires_an_argument(base_app, capsys): run_cmd(base_app, "pyscript") out, err = capsys.readouterr() - assert err.startswith('ERROR: pyscript command requires at least 1 argument ...') + assert "the following arguments are required: script_path" in err def test_base_error(base_app): @@ -1804,7 +1804,7 @@ def test_alias_create(base_app, capsys): # Use the alias run_cmd(base_app, 'fake') out, err = capsys.readouterr() - assert "pyscript command requires at least 1 argument" in err + assert "the following arguments are required: script_path" in err # See a list of aliases out = run_cmd(base_app, 'alias list') @@ -1906,7 +1906,7 @@ def test_macro_create(base_app, capsys): # Use the macro run_cmd(base_app, 'fake') out, err = capsys.readouterr() - assert "pyscript command requires at least 1 argument" in err + assert "the following arguments are required: script_path" in err # See a list of macros out = run_cmd(base_app, 'macro list') |