Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Feb 17, 2024
1 parent 568008f commit 788ec8b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/unit/adapters/algos/test_test_relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ class DummyManifestRel:
nodes=["model.dbt_resto.table-r1", "model.dbt_resto.table-r2"]
),
),
"test.dbt_resto.relationships_table1_recursive": ManifestNode(
test_metadata=ManifestNodeTestMetaData(
kwargs={"column_name": "f1", "field": "f2", "to": "ref('table1')"}
),
meta={},
columns={},
depends_on=ManifestNodeDependsOn(
nodes=["model.dbt_resto.table1"]
),
),
}


Expand Down Expand Up @@ -354,6 +364,11 @@ def test_get_compiled(self, manifest, expected):
],
column_map=["f2", "f1"],
),
Ref(
name="relationships_table1_recursive",
table_map=["model.dbt_resto.table1", "model.dbt_resto.table1"],
column_map=["f2", "f1"],
),
],
),
(
Expand Down

0 comments on commit 788ec8b

Please sign in to comment.