mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: add support for catalogs (#28416)
This commit is contained in:
@@ -167,7 +167,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
model._get_sqla_engine()
|
||||
call_args = mocked_create_engine.call_args
|
||||
|
||||
assert str(call_args[0][0]) == "presto://gamma@localhost"
|
||||
assert str(call_args[0][0]) == "presto://gamma@localhost/"
|
||||
|
||||
assert call_args[1]["connect_args"] == {
|
||||
"protocol": "https",
|
||||
@@ -180,7 +180,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
model._get_sqla_engine()
|
||||
call_args = mocked_create_engine.call_args
|
||||
|
||||
assert str(call_args[0][0]) == "presto://localhost"
|
||||
assert str(call_args[0][0]) == "presto://localhost/"
|
||||
|
||||
assert call_args[1]["connect_args"] == {
|
||||
"protocol": "https",
|
||||
@@ -225,7 +225,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
model._get_sqla_engine()
|
||||
call_args = mocked_create_engine.call_args
|
||||
|
||||
assert str(call_args[0][0]) == "trino://localhost"
|
||||
assert str(call_args[0][0]) == "trino://localhost/"
|
||||
assert call_args[1]["connect_args"]["user"] == "gamma"
|
||||
|
||||
model = Database(
|
||||
@@ -239,7 +239,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
|
||||
assert (
|
||||
str(call_args[0][0])
|
||||
== "trino://original_user:original_user_password@localhost"
|
||||
== "trino://original_user:original_user_password@localhost/"
|
||||
)
|
||||
assert call_args[1]["connect_args"]["user"] == "gamma"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user