错误: PytestCollectionWarning: cannot collect test class 'TestCaseLogin' because it has a __init__ constructor 修改方法:在.py文件中运行没有问题,使用pytest运行出现警告,原因是pytest中不能出现__init__方法
Prevents mildly annoying warnings in pytest of the form: PytestCollectionWarning: cannot collect test class 'TestResponse' because it has a __init__ constructor (from: test/test_foo.py) class TestResponse(webob.Response): This has already been fixed for TestApp in0339515, but TestRequest and...