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


   Hi @mik-laj I need some help for the unit test. Because the original 
`airflow.configuration.conf` variable contains many sections and options, the 
expected API response is too long to put in the test. It is also not 
maintainable as the default config can change. So I want to use a small `conf` 
to mock it. I tried both pytest monkeypatch and mock.patch, but the API still 
returns the original config. Any idea?


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