这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Internal
--------
* Add mypy to Pull Request template.
* Enable flake8-bugbear lint rules.
* Fix flaky editor-command tests in CI.


1.40.0 (2025/10/14)
Expand Down
8 changes: 4 additions & 4 deletions test/features/steps/iocommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ def step_edit_file(context):
if os.path.exists(context.editor_file_name):
os.remove(context.editor_file_name)
context.cli.sendline(f"\\e {os.path.basename(context.editor_file_name)}")
wrappers.expect_exact(context, 'Entering Ex mode. Type "visual" to go to Normal mode.', timeout=2)
wrappers.expect_exact(context, "\r\n:", timeout=2)
wrappers.expect_exact(context, 'Entering Ex mode. Type "visual" to go to Normal mode.', timeout=4)
wrappers.expect_exact(context, "\r\n:", timeout=4)


@when('we type "{query}" in the editor')
def step_edit_type_sql(context, query):
context.cli.sendline("i")
context.cli.sendline(query)
context.cli.sendline(".")
wrappers.expect_exact(context, "\r\n:", timeout=2)
wrappers.expect_exact(context, "\r\n:", timeout=4)


@when("we exit the editor")
def step_edit_quit(context):
context.cli.sendline("x")
wrappers.expect_exact(context, "written", timeout=2)
wrappers.expect_exact(context, "written", timeout=4)


@then('we see "{query}" in prompt')
Expand Down