Skip to content

Commit

Permalink
Remove license and add test for dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
binhnq94 committed Sep 11, 2023
1 parent c856309 commit 41784c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 201 deletions.
201 changes: 0 additions & 201 deletions dev/dags/dbt/model_version/LICENSE

This file was deleted.

16 changes: 16 additions & 0 deletions tests/dbt/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,19 @@ def test_load_dbt_ls_and_manifest_with_model_version(load_method):
for unique_id, name in expected_dbt_nodes.items():
assert unique_id in dbt_graph.nodes
assert name == dbt_graph.nodes[unique_id].name

# Test dependencies
assert {
"model.jaffle_shop.stg_customers.v1",
"model.jaffle_shop.stg_orders.v1",
"model.jaffle_shop.stg_payments",
} == set(dbt_graph.nodes["model.jaffle_shop.customers.v1"].depends_on)
assert {
"model.jaffle_shop.stg_customers.v2",
"model.jaffle_shop.stg_orders.v1",
"model.jaffle_shop.stg_payments",
} == set(dbt_graph.nodes["model.jaffle_shop.customers.v2"].depends_on)
assert {
"model.jaffle_shop.stg_orders.v1",
"model.jaffle_shop.stg_payments",
} == set(dbt_graph.nodes["model.jaffle_shop.orders"].depends_on)

0 comments on commit 41784c0

Please sign in to comment.