Fix cli tests

This commit is contained in:
PThorpe92 2025-04-03 15:22:09 -04:00
parent 73a35329d0
commit 22fd3e9781
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
2 changed files with 2 additions and 5 deletions

View file

@ -338,16 +338,14 @@ def test_series():
def test_kv():
ext_path = "target/debug/liblimbo_ext_tests"
limbo = TestLimboShell()
limbo = TestLimboShell("")
limbo.run_test_fn(
"create virtual table t using kv_store;",
lambda res: "Virtual table module not found: kv_store" in res,
)
limbo.execute_dot(f".load {ext_path}")
limbo.run_test_fn(
limbo.debug_print(
"create virtual table t using kv_store;",
null,
"can create kv_store vtable",
)
limbo.run_test_fn(
"insert into t values ('hello', 'world');",

View file

@ -111,7 +111,6 @@ class TestLimboShell:
if init_commands is None:
# Default initialization
init_commands = """
.open :memory:
CREATE TABLE users (id INTEGER PRIMARY KEY, first_name TEXT, last_name TEXT, age INTEGER);
CREATE TABLE products (id INTEGER PRIMARY KEY, name TEXT, price INTEGER);
INSERT INTO users VALUES (1, 'Alice', 'Smith', 30), (2, 'Bob', 'Johnson', 25),