Skip to content

Commit

Permalink
Improve test (still troubleshooting)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Jul 21, 2023
1 parent c39b99b commit 99c3fba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/airflow/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@
parent_seed = DbtNode(
name="seed_parent",
unique_id="seed_parent",
resource_type="seed",
resource_type=DbtResourceType.SEED,
depends_on=[],
file_path="",
)
parent_node = DbtNode(
name="parent",
unique_id="parent",
resource_type="model",
resource_type=DbtResourceType.MODEL,
depends_on=["seed_parent"],
file_path=SAMPLE_PROJ_PATH / "gen2/models/parent.sql",
tags=["has_child"],
config={"materialized": "view"},
)
test_parent_node = DbtNode(
name="test_parent", unique_id="test_parent", resource_type="test", depends_on=["parent"], file_path=""
name="test_parent", unique_id="test_parent", resource_type=DbtResourceType.TEST, depends_on=["parent"], file_path=""
)
child_node = DbtNode(
name="child",
unique_id="child",
resource_type="model",
resource_type=DbtResourceType.MODEL,
depends_on=["parent"],
file_path=SAMPLE_PROJ_PATH / "gen3/models/child.sql",
tags=["nightly"],
Expand All @@ -50,7 +50,7 @@
test_child_node = DbtNode(
name="test_child",
unique_id="test_child",
resource_type="test",
resource_type=DbtResourceType.TEST,
depends_on=["child"],
file_path="",
)
Expand All @@ -73,7 +73,7 @@ def test_build_airflow_graph_with_after_each():
build_airflow_graph(
nodes=sample_nodes,
dag=dag,
execution_mode="local",
execution_mode=ExecutionMode.LOCAL,
task_args=task_args,
test_behavior="after_each",
dbt_project_name="astro_shop",
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_build_airflow_graph_with_after_all():
build_airflow_graph(
nodes=sample_nodes,
dag=dag,
execution_mode="local",
execution_mode=ExecutionMode.LOCAL,
task_args=task_args,
test_behavior="after_all",
dbt_project_name="astro_shop",
Expand Down

0 comments on commit 99c3fba

Please sign in to comment.