zikun commented on pull request #9497:
URL: https://github.com/apache/airflow/pull/9497#issuecomment-649450168


   > @zikun Here is an example of testing using mock
   > 
[mik-laj@48e4127](https://github.com/mik-laj/airflow/commit/48e412761feb80cadb016be06a4cc965831f7932)
   
   Thanks a lot for the example. It did not work because I was mocking `conf` 
variable. Mocking `as_dict` function works!
   > > @i think we need to give up one response format.
   > > [zalando/connexion#860](https://github.com/zalando/connexion/issues/860)
   > 
   > This is weird because Dag Source and Log uses different types of responses 
and it probably works there.
   
   I just tried testing with both json and text/plain response types. The json 
test failed. I'm looking into the dag source and log PRs now to find 
differences that lead to the failure.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to