如上示例,我们在fastAPI框架的main文件中引入了TestClient,传入app得到client,然后创建一个以test_开头的方法,在方法中使用client.get方法调用 ...
確定! 回上一頁