Skip to content

Commit e46744a

Browse files
committed
Fix complete_tester helper function in conftest.py so it passes all of the correct arguments to app.complete()
This fixes all of the test_argparse_comleter.py tests. There are still failing tests in test_cmd2.py, test_history.py, and test_run_pyscript.py as well as a test in test_cmd2.py that gets stuck.
1 parent 0aa3a06 commit e46744a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def get_endidx() -> int:
151151
mock.patch.object(readline, 'get_begidx', get_begidx),
152152
mock.patch.object(readline, 'get_endidx', get_endidx),
153153
):
154-
return app.complete(text, 0)
154+
return app.complete(text, 0, line, begidx, endidx)
155155

156156

157157
def find_subcommand(action: argparse.ArgumentParser, subcmd_names: list[str]) -> argparse.ArgumentParser:

0 commit comments

Comments
 (0)