ci: Add python unit test workflows (#954)

This commit is contained in:
Fangyin Cheng
2023-12-20 10:04:19 +08:00
committed by GitHub
parent 322425b099
commit ba8fa8774d
4 changed files with 183 additions and 75 deletions

View File

@@ -13,7 +13,11 @@ def db():
temp_db_file.close()
conn = SQLiteConnect.from_file_path(temp_db_file.name)
yield conn
os.unlink(temp_db_file.name)
try:
# TODO: Failed on windows
os.unlink(temp_db_file.name)
except Exception as e:
print(f"An error occurred: {e}")
def test_get_table_names(db):