How can I mock functions that are called by async code?

前端 未结 0 1810
太阳男子
太阳男子 2020-12-22 03:00

This test works.

def test_mock_ingest():
    with mock.patch(\'app.ingest.ingest\') as mock_ingest:
        app.ingest.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题