标签: python testing pytest assert
我们的代码库中的一些测试缺少assert,例如mock_http_request.call_args[1]['deadline'] == 5,因此测试没有做任何事情。有没有办法配置py.test所以如果测试中没有断言它会失败/警告?
assert
mock_http_request.call_args[1]['deadline'] == 5