summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 09:52:10 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 09:52:10 -0600
commitfd3512a80600a3262030d55ed03f4930757395f6 (patch)
tree8b364b33936aa82bd6a32f1f5edc41dcb83149e8 /tests/test_parsing.py
parent5c14b3845f6a872e3e5b236f8caab6b4f3472f8f (diff)
downloadcmd2-git-fd3512a80600a3262030d55ed03f4930757395f6.tar.gz
Move quotes and redirection_chars from arguments to constants
Since the tab completion code relies on these same constants, if we allow them to be passed to the statement parser, we could have a situation where the statement parser and tab completion return different results.
Diffstat (limited to 'tests/test_parsing.py')
-rw-r--r--tests/test_parsing.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index d7a872b3..b920b440 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -14,9 +14,7 @@ import pytest
@pytest.fixture
def parser():
parser = StatementParser(
- quotes=['"', "'"],
allow_redirection=True,
- redirection_chars=['|', '<', '>'],
terminators = [';'],
multilineCommands = ['multiline'],
aliases = {'helpalias': 'help', '42': 'theanswer', 'anothermultiline': 'multiline', 'fake': 'pyscript'},