diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-18 21:05:10 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-18 21:05:10 -0500 |
commit | f7441431697e4ba94202a1484721ae8acf3a4ab7 (patch) | |
tree | 234c893f8cb90138d86b668ba12d0bf448de4b52 /tests/test_parsing.py | |
parent | 970c5fc42c69c1c03640c979df341e85e3c38848 (diff) | |
download | cmd2-git-f7441431697e4ba94202a1484721ae8acf3a4ab7.tar.gz |
Moved custom cmd2 exceptions to a separate file and removed them from public API
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index 2114bfaa..435f22eb 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -7,7 +7,7 @@ import attr import pytest import cmd2 -from cmd2 import constants, utils +from cmd2 import constants, exceptions, utils from cmd2.parsing import StatementParser, shlex_split @pytest.fixture @@ -588,10 +588,10 @@ def test_parse_unclosed_quotes(parser): def test_empty_statement_raises_exception(): app = cmd2.Cmd() - with pytest.raises(cmd2.EmptyStatement): + with pytest.raises(exceptions.EmptyStatement): app._complete_statement('') - with pytest.raises(cmd2.EmptyStatement): + with pytest.raises(exceptions.EmptyStatement): app._complete_statement(' ') @pytest.mark.parametrize('line,command,args', [ |