Mock streaming API in python for unit test

前端 未结 0 1998
悲哀的现实
悲哀的现实 2020-12-04 03:59

I have an async function that calls a streaming api. What is the best way to write unit test for this function? The api response has to be mocked.

I tried with aiouni

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