galak75 commented on issue #4691: [AIRFLOW-1814] : templatize PythonOperator op_args and op_kwargs fields URL: https://github.com/apache/airflow/pull/4691#issuecomment-464279041 I checked, and it actually fails with a `TypeError: Object of type Mock is not JSON serializable` see https://travis-ci.org/VilledeMontreal/incubator-airflow/builds/494081085 You're right, this test code seems awkward at first. Using a `Mock` would be a better solution. **Maybe someone knows how to make it work with a `Mock`?** Meanwhile I'm adding some comment to explain this unusual test code choice.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services