summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
author赖信涛 <laixintao@users.noreply.github.com>2020-04-06 11:56:31 +0800
committerGitHub <noreply@github.com>2020-04-05 20:56:31 -0700
commitb6e2a229e5f122a9efa31666dee7965621eff031 (patch)
tree999e6c244bd8171a61771e3312fe41a89d7429f7 /tests
parent93c14f844ee33e4d47ae07688f0e5ca7219df7de (diff)
upgrade prompt-toolit to 3.0 (#1149)
* upgrade prompt-toolit to 3.0 fix: https://github.com/dbcli/pgcli/issues/1148 related: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/886 in order to make the `behave` test pass, I have to: - extend timeout for database connection test. - extend timeout for basic command expect. - extend timeout for features/steps/crud_table.py:: see data selected. - disable cpr for features but "run the cli" * [ci] disable CPR for all behave tests. * bugfix: remove duplicated prompt expect. * [ci] delete CPR env setting. * Revert "[ci] delete CPR env setting." This reverts commit fe4d5b565e01be6237b6df646429d26eaa0c6d92. * revert the extending timeout back. * [ci] test when didn't disable CPR. * Revert "[ci] test when didn't disable CPR." This reverts commit d379b1e736dcc6623ba53fc3d4e6f095fd3e8344.
Diffstat (limited to 'tests')
-rw-r--r--tests/features/environment.py1
-rw-r--r--tests/features/steps/basic_commands.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/features/environment.py b/tests/features/environment.py
index 4e7e601e..049c2f23 100644
--- a/tests/features/environment.py
+++ b/tests/features/environment.py
@@ -20,6 +20,7 @@ def before_all(context):
os.environ["PAGER"] = "cat"
os.environ["EDITOR"] = "ex"
os.environ["VISUAL"] = "ex"
+ os.environ["PROMPT_TOOLKIT_NO_CPR"] = "1"
context.package_root = os.path.abspath(
os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
diff --git a/tests/features/steps/basic_commands.py b/tests/features/steps/basic_commands.py
index 0c42ae0e..52e432a6 100644
--- a/tests/features/steps/basic_commands.py
+++ b/tests/features/steps/basic_commands.py
@@ -91,7 +91,6 @@ def step_send_partial_select_command(context):
@then("we see error message")
def step_see_error_message(context):
wrappers.expect_exact(context, 'column "a" does not exist', timeout=2)
- wrappers.wait_prompt(context)
@when("we send source command")