mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
fix python test import naming
This commit is contained in:
parent
3bd5d4c732
commit
c5bed21dff
8 changed files with 40 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
import os
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
from pydantic import BaseModel
|
||||
|
||||
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
|
||||
|
|
|
@ -8,7 +8,7 @@ import tempfile
|
|||
from enum import Enum
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
from faker import Faker
|
||||
from faker.providers.lorem.en_US import Provider as P
|
||||
from pydantic import BaseModel
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import os
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
|
||||
sqlite_exec = "./scripts/limbo-sqlite3"
|
||||
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
|
||||
|
@ -343,7 +343,7 @@ def test_kv():
|
|||
|
||||
|
||||
def _test_kv(exec_name, ext_path):
|
||||
console.info(f"Running test_kv for {ext_path}")
|
||||
console.info(f"Running test_kv for {ext_path} in {exec_name}")
|
||||
|
||||
limbo = TestTursoShell(
|
||||
exec_name=exec_name,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import os
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
|
||||
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import os
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
from pydantic import BaseModel
|
||||
|
||||
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# vfs benchmarking/comparison
|
||||
import argparse
|
||||
import os
|
||||
import platform
|
||||
import statistics
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
@ -10,11 +11,13 @@ from time import perf_counter, sleep
|
|||
from typing import Dict
|
||||
|
||||
from cli_tests.console import error, info, test
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
|
||||
LIMBO_BIN = Path("./target/release/limbo")
|
||||
LIMBO_BIN = Path("./target/release/tursodb")
|
||||
DB_FILE = Path("testing/temp.db")
|
||||
vfs_list = ["syscall", "io_uring"]
|
||||
vfs_list = ["syscall"]
|
||||
if platform.system() == "Linux":
|
||||
vfs_list.append("io_uring")
|
||||
|
||||
|
||||
def append_time(times, start, perf_counter):
|
||||
|
|
|
@ -4,7 +4,7 @@ import tempfile
|
|||
from time import sleep
|
||||
|
||||
from cli_tests import console
|
||||
from cli_tests.test_limbo_cli import TestTursoShell
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
from pydantic import BaseModel
|
||||
|
||||
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
|
||||
|
@ -39,8 +39,8 @@ class InsertTest(BaseModel):
|
|||
big_stmt.append("SELECT count(*) FROM test;")
|
||||
expected.append(str(self.vals * 2))
|
||||
|
||||
big_stmt.append("DELETE FROM temp;")
|
||||
big_stmt.append("SELECT count(*) FROM temp;")
|
||||
big_stmt.append("DELETE FROM test;")
|
||||
big_stmt.append("SELECT count(*) FROM test;")
|
||||
expected.append(str(0))
|
||||
|
||||
big_stmt = "".join(big_stmt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue