summaryrefslogtreecommitdiffstats
path: root/tests/features/steps/wrappers.py
diff options
context:
space:
mode:
authorIrina Truong <i.chernyavska@gmail.com>2019-05-21 20:21:58 -0700
committerIrina Truong <i.chernyavska@gmail.com>2019-05-21 20:21:58 -0700
commitb4fbe28286410f6b61bd8b9d4a06c2dbfc295bb9 (patch)
tree2a064f026129acd6baa7dd7754ab1fae07b0f761 /tests/features/steps/wrappers.py
parent5177c9922ebb62ca0b90307c38a13ddc8a574d24 (diff)
Fix for dsn_password behave test.
Diffstat (limited to 'tests/features/steps/wrappers.py')
-rw-r--r--tests/features/steps/wrappers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py
index 11809b30..23f9cc2b 100644
--- a/tests/features/steps/wrappers.py
+++ b/tests/features/steps/wrappers.py
@@ -49,7 +49,7 @@ def expect_pager(context, expected, timeout):
context.conf['pager_boundary'], expected), timeout=timeout)
-def run_cli(context, run_args=None, prompt_check=True):
+def run_cli(context, run_args=None, prompt_check=True, currentdb=None):
"""Run the process using pexpect."""
run_args = run_args or []
cli_cmd = context.conf.get('cli_command')
@@ -59,7 +59,7 @@ def run_cli(context, run_args=None, prompt_check=True):
context.logfile = StringIO()
context.cli.logfile = context.logfile
context.exit_sent = False
- context.currentdb = context.conf['dbname']
+ context.currentdb = currentdb or context.conf['dbname']
context.cli.sendline('\pset pager always')
if prompt_check:
wait_prompt(context)