Skip to content

Commit

Permalink
feat(server):libro notebook show python flow
Browse files Browse the repository at this point in the history
  • Loading branch information
yhjun1026 committed Nov 18, 2024
1 parent 1981238 commit 24c5aa4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions dbgpt/datasource/rdbms/tests/test_conn_duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ def db():
yield conn


# def test_get_users(db):
# assert db.get_users() == []

#
# def test_get_table_names(db):
# assert list(db.get_table_names()) == []
#
#
# def test_get_charset(db):
# assert db.get_charset() == "UTF-8"
#
#
# def test_get_table_comments(db):
# assert db.get_table_comments("test") == []
#
#
# def test_table_simple_info(db):
# assert db.table_simple_info() == []
#
#
# def test_execute(db):
# assert list(db.run("SELECT 42")[0]) == ["42"]
def test_get_users(db):
assert db.get_users() == []


def test_get_table_names(db):
assert list(db.get_table_names()) == []


def test_get_charset(db):
assert db.get_charset() == "UTF-8"


def test_get_table_comments(db):
assert db.get_table_comments("test") == []


def test_table_simple_info(db):
assert db.table_simple_info() == []


def test_execute(db):
assert list(db.run("SELECT 42")[0]) == ["42"]
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def core_requires():
# https://github.com/eosphoros-ai/DB-GPT/issues/551
# TODO: remove pandas dependency
# alpine can't install pandas by default
"pandas>=2.2.2",
"pandas==2.0.3",
# numpy should less than 2.0.0
"numpy>=1.21.0,<2.0.0",
]
Expand All @@ -472,7 +472,7 @@ def core_requires():
# find a new toolkit.
"pympler",
"duckdb",
"duckdb-engine",
"duckdb-engine==0.9.1",
# lightweight python library for scheduling jobs
"schedule",
# For datasource subpackage
Expand Down

0 comments on commit 24c5aa4

Please sign in to comment.