Get startedGet started for free

Writing a Dag integrity test

Integrity tests sit at the base of the Dag testing pyramid. They catch import errors, like a missing provider package or a renamed variable, that would silently remove a Dag from the scheduler.

A Dag called daily_etl has been deployed, and your team wants a pytest-based integrity test that uses DagBag to verify it loads correctly.

This exercise is part of the course

Building Data Pipelines with Airflow

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise