summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSharon Yogev <31185192+sharonyogev@users.noreply.github.com>2023-10-18 19:25:29 +0300
committerGitHub <noreply@github.com>2023-10-18 09:25:29 -0700
commit0ad3393fa83de6251ea07d938835f7fc5f0624f0 (patch)
tree24ade7dbc1b8965a393a07986c75652912094e97 /tests
parent13ca7d24303c0c03eeecb8471ea34af818e35068 (diff)
confirm_destructive_query: Use confirm rather than prompt (#1410)
* confirm_destructive_query: Use confirm rather than prompt * Fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/features/steps/basic_commands.py2
-rw-r--r--tests/features/steps/expanded.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/features/steps/basic_commands.py b/tests/features/steps/basic_commands.py
index 8f184bbd..687bdc0a 100644
--- a/tests/features/steps/basic_commands.py
+++ b/tests/features/steps/basic_commands.py
@@ -206,7 +206,7 @@ def step_resppond_to_destructive_command(context, response):
"""Respond to destructive command."""
wrappers.expect_exact(
context,
- "You're about to run a destructive command.\r\nDo you want to proceed? (y/n):",
+ "You're about to run a destructive command.\r\nDo you want to proceed? [y/N]:",
timeout=2,
)
context.cli.sendline(response.strip())
diff --git a/tests/features/steps/expanded.py b/tests/features/steps/expanded.py
index ac84c41c..302cab94 100644
--- a/tests/features/steps/expanded.py
+++ b/tests/features/steps/expanded.py
@@ -16,7 +16,7 @@ def step_prepare_data(context):
context.cli.sendline("drop table if exists a;")
wrappers.expect_exact(
context,
- "You're about to run a destructive command.\r\nDo you want to proceed? (y/n):",
+ "You're about to run a destructive command.\r\nDo you want to proceed? [y/N]:",
timeout=2,
)
context.cli.sendline("y")