MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / test_ctrl_f

Function test_ctrl_f

tools/shell/test/test_shell_control_search.py:255–268  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

253
254@pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
255def test_ctrl_f(test) -> None:
256 test.send_finished_statement('RETURN "databasesrule" AS a;\r')
257 assert (
258 test.shell_process.expect_exact(["\u2502 databasesrule \u2502", pexpect.EOF])
259 == 0
260 )
261 test.send_control_statement(KEY_ACTION.CTRL_R.value)
262 test.send_statement("database")
263 test.send_control_statement(KEY_ACTION.CTRL_F.value)
264 test.send_finished_statement(" \x1b[F\r")
265 assert (
266 test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
267 == 0
268 )
269
270
271@pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)

Callers

nothing calls this directly

Calls 3

send_statementMethod · 0.80

Tested by

no test coverage detected