diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 1d2e0b9..c46b982 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -118,13 +118,14 @@ class CliRunner(object): click.termui.visible_prompt_func = old_visible_prompt_func click.termui.hidden_prompt_func = old_hidden_prompt_func - def invoke(self, cli, args): + def invoke(self, cli, args, **extra): with self.isolation() as out: exception = None exit_code = 0 try: - cli.main(args=args, prog_name=cli.name or 'root') + cli.main(args=args, prog_name=cli.name or 'root', + **extra) except SystemExit as e: if e.code != 0: exception = e |