Start adding tests, using testament.

FossilOrigin-Name: 6f368f0d303c65000c74f346b7bc39ffca964aff7767c60be2384739e5dc4d72
This commit is contained in:
mahlon 2025-03-18 02:21:06 +00:00
parent 89e879ca68
commit 1ed442a68a
16 changed files with 200 additions and 44 deletions

View file

@ -0,0 +1,10 @@
# vim: set et sta sw=4 ts=4 :
import kuzu
let db = newKuzuDatabase()
assert db.path == "(in-memory)"
assert typeOf( db.connect ) is KuzuConnection

View file

@ -0,0 +1,13 @@
# vim: set et sta sw=4 ts=4 :
import kuzu
let db = newKuzuDatabase()
let conn = db.connect
# FIXME: This test should really perform some
# long running query in a thread, and cancel
# it from elsewhere.
conn.queryInterrupt()

View file

@ -0,0 +1,12 @@
# vim: set et sta sw=4 ts=4 :
import kuzu
let db = newKuzuDatabase()
let conn = db.connect
# There is currently no getter for this, so
# we'll just have to assume a lack of
# exception/error means success.
conn.queryTimeout( 1000 )