We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d2c571 commit 6d7ced7Copy full SHA for 6d7ced7
tests/core/test_schema_loader.py
@@ -16,7 +16,7 @@ def cleanup(sushi_context):
16
os.remove(sushi_context.path / c.SCHEMA_YAML)
17
18
19
-def test_create_external_models(sushi_context):
+def test_create_external_models(sushi_context, assert_exp_eq):
20
fruits = pd.DataFrame(
21
[
22
{"id": 1, "name": "apple"},
@@ -80,3 +80,12 @@ def test_create_external_models(sushi_context):
80
"id": exp.DataType.build("BIGINT"),
81
"name": exp.DataType.build("VARCHAR"),
82
}
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