Skip to content

Commit

Permalink
Add cleanup to dbapi test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunyu authored and auxten committed Jan 4, 2024
1 parent e87a822 commit ee4c3a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def test_insert_and_read_data(self):
rows = cur.fetchall()
self.assertEqual(rows, ((96,), (72,), (24,)))

# Clean up
cur.close()
conn.close()

def test_select_chdb_version(self):
ver = dbapi.get_client_info() # chDB version liek '0.12.0'
ver_tuple = dbapi.chdb_version # chDB version tuple like ('0', '12', '0')
Expand Down

0 comments on commit ee4c3a6

Please sign in to comment.