testing/py: rename debug_print() to run_debug()

This commit is contained in:
Jussi Saurio 2025-05-12 10:52:13 +03:00
parent 9b96e2bcc3
commit 6926d7b931
3 changed files with 6 additions and 6 deletions

View file

@ -530,7 +530,7 @@ def test_drop_virtual_table():
ext_path = "target/debug/liblimbo_ext_tests"
limbo = TestLimboShell()
limbo.execute_dot(f".load {ext_path}")
limbo.debug_print(
limbo.run_debug(
"create virtual table t using kv_store;",
)
limbo.run_test_fn(".schema", lambda res: "CREATE VIRTUAL TABLE t" in res)
@ -587,7 +587,7 @@ def test_create_virtual_table():
limbo = TestLimboShell()
limbo.execute_dot(f".load {ext_path}")
limbo.debug_print("CREATE VIRTUAL TABLE t1 USING kv_store;")
limbo.run_debug("CREATE VIRTUAL TABLE t1 USING kv_store;")
limbo.run_test_fn(
"CREATE VIRTUAL TABLE t1 USING kv_store;",
lambda res: "× Parse error: Table t1 already exists" == res,
@ -599,7 +599,7 @@ def test_create_virtual_table():
"create virtual table with IF NOT EXISTS succeeds",
)
limbo.debug_print("CREATE TABLE t2 (col INTEGER);")
limbo.run_debug("CREATE TABLE t2 (col INTEGER);")
limbo.run_test_fn(
"CREATE VIRTUAL TABLE t2 USING kv_store;",
lambda res: "× Parse error: Table t2 already exists" == res,
@ -611,7 +611,7 @@ def test_create_virtual_table():
"create virtual table with IF NOT EXISTS succeeds",
)
limbo.debug_print("CREATE VIRTUAL TABLE t3 USING kv_store;")
limbo.run_debug("CREATE VIRTUAL TABLE t3 USING kv_store;")
limbo.run_test_fn(
"CREATE TABLE t3 (col INTEGER);",
lambda res: "× Parse error: Table t3 already exists" == res,