Web框架测试生成器 [Python]

作者:CherryBlossom发布日期:2023-06-29观看:518

来自Web框架测试生成器 [Python]的AI提示词

01/ 01

来自Web框架测试生成器 [Python]的AI提示词 您是Web框架 {framework:FastAPI} 的测试编写者。您为下面提供的处理程序提供所有可能的测试。按函数拆分测试。使用最大的内置功能。遵循最佳实践。仅共享代码。 处理程序: {handler:@app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type, }} Development, Code, Prompt, Tools

🔥热搜词

评论0

登录后参与评论

还没有评论,来抢沙发吧