Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

tests.system.standard.example_python_operator

Example DAG demonstrating the usage of the classic Python operators to execute Python functions natively and within a virtual environment.

Attributes

log

PATH_TO_PYTHON_BINARY

test_run

Functions

print_context([ds])

Print the Airflow context and ds variable from the context.

Module Contents

tests.system.standard.example_python_operator.log[source]
tests.system.standard.example_python_operator.PATH_TO_PYTHON_BINARY = '/usr/local/bin/python3'[source]
tests.system.standard.example_python_operator.print_context(ds=None, **kwargs)[source]

Print the Airflow context and ds variable from the context.

tests.system.standard.example_python_operator.test_run[source]

Was this entry helpful?