diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-16 17:38:05 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-16 17:38:05 -0400 |
commit | 6b388ede0d1cc77a587164010cd0c47aa6ec7052 (patch) | |
tree | c0ca71c520f6451d1f12666be8790ba3387a6ed9 /tests/test_completion.py | |
parent | 8cf0b30af678717160a6c53cc7c0c84aa007c42f (diff) | |
download | cmd2-git-6b388ede0d1cc77a587164010cd0c47aa6ec7052.tar.gz |
Aliases are now stored within the StatementParser instance
Also:
- Added read-only aliases property to cmd2.Cmd to get aliases from the StatementParser
- Added a setter for the allow_redirection property in cmd2.Cmd
- Made some initialization code more self-documenting
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index a7c26928..47a7a9d6 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -635,7 +635,7 @@ def test_tokens_for_completion_redirect(cmd2_app): endidx = len(line) begidx = endidx - len(text) - cmd2_app.statement_parser.allow_redirection = True + cmd2_app.allow_redirection = True expected_tokens = ['command', '|', '<', '>>', 'file'] expected_raw_tokens = ['command', '|', '<', '>>', 'file'] |