我刚刚安装了 pytest 并尝试使用它,但它给了我错误。我卸载它并再次安装它,它给了我与我尝试导入它相同的错误
const validationSchema = Yup.object().shape({
weight: Yup.number()
.required(`Value required`)
.integer()
.positive()
.min(0)
.max(10, `Weight can't be greater than 10`),
});
你能帮我做什么吗,或者建议另一个库,就像 pytest 那样我测试我的应用程序。
感谢您的贡献
答案 0 :(得分:1)
pip list
命令并检查那里是否有 pytest