summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaixintao <laixintaoo@gmail.com>2020-04-05 17:41:37 +0800
committerlaixintao <laixintaoo@gmail.com>2020-04-05 17:41:37 +0800
commit2130a4454a65c72a48371e74e31c2f83f1cd4a25 (patch)
tree5ada87fe01a766b03a9713912829d686a065809c
parent1f943846cfc85df7100a41699dd690635180b9ed (diff)
bugfix: remove duplicated prompt expect.
-rw-r--r--tests/features/environment.py5
-rw-r--r--tests/features/steps/basic_commands.py1
2 files changed, 1 insertions, 5 deletions
diff --git a/tests/features/environment.py b/tests/features/environment.py
index 27454374..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__)))
@@ -158,10 +159,6 @@ def before_step(context, _):
context.atprompt = False
-def before_feature(context, feature):
- os.environ["PROMPT_TOOLKIT_NO_CPR"] = "1"
-
-
def before_scenario(context, scenario):
if scenario.name == "list databases":
# not using the cli for that
diff --git a/tests/features/steps/basic_commands.py b/tests/features/steps/basic_commands.py
index af2e6c60..7ca8edf5 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")