Skip to content

Commit 6d7ced7

Browse files
committed
Chore: add test for rendering on external
1 parent 9d2c571 commit 6d7ced7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/core/test_schema_loader.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def cleanup(sushi_context):
1616
os.remove(sushi_context.path / c.SCHEMA_YAML)
1717

1818

19-
def test_create_external_models(sushi_context):
19+
def test_create_external_models(sushi_context, assert_exp_eq):
2020
fruits = pd.DataFrame(
2121
[
2222
{"id": 1, "name": "apple"},
@@ -80,3 +80,12 @@ def test_create_external_models(sushi_context):
8080
"id": exp.DataType.build("BIGINT"),
8181
"name": exp.DataType.build("VARCHAR"),
8282
}
83+
assert_exp_eq(
84+
fruits.render_query(snapshots=sushi_context.snapshots),
85+
"""
86+
SELECT
87+
raw_fruits.id AS id,
88+
raw_fruits.name AS name
89+
FROM sushi.raw_fruits AS raw_fruits
90+
""",
91+
)

0 commit comments

Comments
 (0)