Skip to content

Commit f1c3954

Browse files
committed
Fix tests
1 parent d6bfaa2 commit f1c3954

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "sqlite_blaster_python"
12-
version = "0.0.3"
12+
version = "0.0.4"
1313
authors = [
1414
{ name="Arundale Ramanathan", email="[email protected]" },
1515
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
131131
# logic and declaration, and simpler if you include description/version in a file.
132132
setup(
133133
name="sqlite_blaster_python",
134-
version="0.0.3",
134+
version="0.0.4",
135135
author="Arundale Ramanathan",
136136
author_email="[email protected]",
137137
description="Python binding for sqlite_blaster project",

tests/test_sqib.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import sys
2+
23
sys.path.insert(0, '.')
4+
sys.path.insert(0, 'src')
35

46
import sqlite_blaster_python as m
57

68
def test_basic():
7-
col_names = ["key", "value"]
9+
col_names = "key, value"
810
sqib = m.sqlite_index_blaster(2, 1, col_names, "imain", 4096, 40, "kv_idx.db")
911
sqib.put_string("hello", "world")
1012
assert sqib.get_string("hello", "not_found") == "world"
@@ -13,7 +15,7 @@ def test_basic():
1315

1416
def test_table():
1517
import sqlite_blaster_python
16-
col_names = ["student_name", "age", "maths_marks", "physics_marks", "chemistry_marks", "average_marks"]
18+
col_names = "student_name, age, maths_marks, physics_marks, chemistry_marks, average_marks"
1719
sqib = sqlite_blaster_python.sqlite_index_blaster(6, 2, col_names, "student_marks", 4096, 40, "student_marks.db")
1820
test_rec1 = ["Robert", 19, 80, 69, 98, round((80+69+98)/3, 2)]
1921
sqib.put_rec(test_rec1)
@@ -28,4 +30,4 @@ def test_table():
2830
sqib.close()
2931

3032
def test_main():
31-
assert m.__version__ == "0.0.1"
33+
assert m.__version__ == "0.0.4"

0 commit comments

Comments
 (0)