我正在使用 Flask 构建 Web 服务和 pytest 进行测试
我正在使用 pytest 固定装置来设置和拆除测试资源,但我需要测试一个 POST 端点,它将在数据库中创建一些记录
我们如何清理这些记录?
python testing integration-testing pytest python-3.x
integration-testing ×1
pytest ×1
python ×1
python-3.x ×1
testing ×1