summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-27 21:52:38 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-27 21:52:38 -0400
commita67c694c153fd1d15c266d89bab29076d00919d5 (patch)
tree560dc2c7563e0cf4712e600c2f6c254e666c223d /tests/conftest.py
parent848372592577f02e03c063c6ec29a349a0f40071 (diff)
parentb4e217239cf176b96aeb3b124eef3609e688d791 (diff)
downloadcmd2-git-a67c694c153fd1d15c266d89bab29076d00919d5.tar.gz
Merge branch 'macro' into argparse_conversion
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 4083c50e..93348098 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -160,11 +160,9 @@ def complete_tester(text: str, line: str, begidx: int, endidx: int, app) -> Opti
def get_endidx():
return endidx
- first_match = None
with mock.patch.object(readline, 'get_line_buffer', get_line):
with mock.patch.object(readline, 'get_begidx', get_begidx):
with mock.patch.object(readline, 'get_endidx', get_endidx):
# Run the readline tab-completion function with readline mocks in place
first_match = app.complete(text, 0)
-
- return first_match
+ return first_match