File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2121
2222from airflow .models import DAG
2323from airflow .operators .python_operator import PythonOperator
24+
2425# AIRFLOW-1893 - Originally, impersonation tests were incomplete missing the use case when
2526# DAGs access custom packages usually made available through the PYTHONPATH environment
2627# variable. This file includes a DAG that imports a custom package made available and if
2930# This DAG is used to test that impersonation propagates the PYTHONPATH environment
3031# variable correctly.
3132
33+
3234DEFAULT_DATE = datetime (2016 , 1 , 1 )
3335
3436args = {
@@ -48,6 +50,7 @@ class FakeDatetime(datetime):
4850 def __new__ (cls , * args , ** kwargs ):
4951 return datetime .__new__ (datetime , * args , ** kwargs )
5052
53+
5154def print_today ():
5255 date_time = FakeDatetime .utcnow ()
5356 print ('Today is {}' .format (date_time .strftime ('%Y-%m-%d' )))
You can’t perform that action at this time.
0 commit comments