how to mock mongodb connection or insert_one with async

前端 未结 0 1200
南旧
南旧 2020-12-29 02:47

I have simple code,

async def create_document(
    conn: AsyncIOMotorClient, document: internal.Document
) -> internal.DocumentInDb:
    document_data = do         


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