我试图通过pytest获取testfixtures的测试,但是有些测试模块使用old pattern来定义一个名为test_suite的函数,该函数返回测试:
def test_suite():
return TestSuite((
DocTestSuite(setUp=setUp, tearDown=tearDown),
makeSuite(LogCaptureTests),
))
当pytest尝试收集此信息时,它失败并抱怨:
^{pr2}$我怎么能让它来收集测试呢?在
目前没有回答
相关问题 更多 >
编程相关推荐