mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: export/import catalogs (#28408)
This commit is contained in:
@@ -68,6 +68,7 @@ def test_export(session: Session) -> None:
|
||||
description="This is the description",
|
||||
is_featured=1,
|
||||
cache_timeout=3600,
|
||||
catalog="public",
|
||||
schema="my_schema",
|
||||
sql=None,
|
||||
params=json.dumps(
|
||||
@@ -111,6 +112,7 @@ description: This is the description
|
||||
default_endpoint: null
|
||||
offset: -8
|
||||
cache_timeout: 3600
|
||||
catalog: public
|
||||
schema: my_schema
|
||||
sql: null
|
||||
params:
|
||||
|
||||
@@ -61,6 +61,7 @@ def test_import_dataset(mocker: MockFixture, session: Session) -> None:
|
||||
"default_endpoint": None,
|
||||
"offset": -8,
|
||||
"cache_timeout": 3600,
|
||||
"catalog": "public",
|
||||
"schema": "my_schema",
|
||||
"sql": None,
|
||||
"params": {
|
||||
@@ -115,6 +116,7 @@ def test_import_dataset(mocker: MockFixture, session: Session) -> None:
|
||||
assert sqla_table.default_endpoint is None
|
||||
assert sqla_table.offset == -8
|
||||
assert sqla_table.cache_timeout == 3600
|
||||
assert sqla_table.catalog == "public"
|
||||
assert sqla_table.schema == "my_schema"
|
||||
assert sqla_table.sql is None
|
||||
assert sqla_table.params == json.dumps(
|
||||
|
||||
Reference in New Issue
Block a user