Skip to content

Commit

Permalink
exclude byo profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaneve committed Jul 24, 2023
1 parent 6f64246 commit 981ae8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_example_dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
EXAMPLE_DAGS_DIR = Path(__file__).parent.parent / "dev/dags"
AIRFLOW_IGNORE_FILE = EXAMPLE_DAGS_DIR / ".airflowignore"

EXCLUDE_DAG_IDS = [
"cosmos_byo_profile",
]

MIN_VER_DAG_FILE: dict[str, list[str]] = {
"2.4": ["cosmos_seed_dag.py"],
}
Expand Down Expand Up @@ -59,6 +63,9 @@ def get_dag_ids() -> list[str]:
@pytest.mark.integration
@pytest.mark.parametrize("dag_id", get_dag_ids())
def test_example_dag(session, dag_id: str):
if dag_id in EXCLUDE_DAG_IDS:
pytest.skip(f"DAG {dag_id} is excluded from testing")

dag_bag = get_dag_bag()
dag = dag_bag.get_dag(dag_id)
test_utils.run_dag(dag)

0 comments on commit 981ae8f

Please sign in to comment.