Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Dec 19, 2024
1 parent f380cd3 commit 1b55b4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/listeners/test_dag_run_listener.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime
from pathlib import Path

import pytest
from airflow.models import DAG

from cosmos import DbtRunLocalOperator, ProfileConfig, ProjectConfig
Expand All @@ -23,6 +24,7 @@
)


@pytest.mark.integration
def test_is_cosmos_dag_is_true():
dag = DbtDag(
project_config=ProjectConfig(
Expand All @@ -38,6 +40,7 @@ def test_is_cosmos_dag_is_true():
assert uses_cosmos(dag)


@pytest.mark.integration
def test_total_cosmos_task_groups():
with DAG("test-id-dbt-compile", start_date=datetime(2022, 1, 1)) as dag:
_ = DbtTaskGroup(
Expand All @@ -52,6 +55,7 @@ def test_total_cosmos_task_groups():
assert uses_cosmos(dag)


@pytest.mark.integration
def test_total_cosmos_tasks_in_task_group():
with DAG("test-id-dbt-compile", start_date=datetime(2022, 1, 1)) as dag:
_ = DbtTaskGroup(
Expand Down

0 comments on commit 1b55b4a

Please sign in to comment.