summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 10:21:01 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 10:21:01 -0400
commite9e25188079f3006d79f4e5d30b6e297ffab0ea5 (patch)
treebc6794b18baba7a4ff4839ab75598ae6d7e54a28 /tests/conftest.py
parentf150a322c743f5be87a3ebc9c10b1ebe1e9bb67f (diff)
downloadcmd2-git-e9e25188079f3006d79f4e5d30b6e297ffab0ea5.tar.gz
Addressing code review comments
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 949d5419..2c7a2600 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -160,9 +160,8 @@ def complete_tester(text: str, line: str, begidx: int, endidx: int, app) -> Opti
def get_endidx():
return endidx
+ # Run the readline tab-completion function with readline mocks in place
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 app.complete(text, 0)