suii2210 opened a new pull request, #58969: URL: https://github.com/apache/airflow/pull/58969
This PR improves the unit-testing section of the Airflow documentation by adding runnable pytest examples for testing custom operators. The existing docs show a dag.test() example which behaves differently inside pytest due to DAG serialization constraints. To address this, the PR adds: • DummySuccessOperator (used only for testing) • Example using TaskInstance.run() • Example using dag.create_dagrun() • Documentation updates under best-practices All examples are fully runnable and compatible with Airflow 3.x. Closes: #58893 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
