Copying the dict to be safe
This commit is contained in:
Родитель
3121a2ad76
Коммит
926408a9bb
|
@ -1,3 +1,4 @@
|
|||
from copy import copy
|
||||
from datetime import datetime, timedelta
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
|
@ -179,7 +180,7 @@ def apply_defaults(func):
|
|||
dag_args = {}
|
||||
if 'dag' in kwargs and kwargs['dag']:
|
||||
dag = kwargs['dag']
|
||||
dag_args = dag.default_args or {}
|
||||
dag_args = copy(dag.default_args) or {}
|
||||
|
||||
default_args = {}
|
||||
if 'default_args' in kwargs:
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
export AIRFLOW_CONFIG=~/airflow/unittests.cfg
|
||||
nosetests --with-doctest --with-coverage --cover-html --cover-package=airflow --nocapture
|
||||
#python -m SimpleHTTPServer 8002
|
||||
nosetests --with-doctest --with-coverage --cover-html --cover-package=airflow --cover-html-dir=airflow/www/static/coverage
|
||||
|
|
Загрузка…
Ссылка в новой задаче