After I upgraded pytest to version 3.7, it cannot find any test in my project.
I look into pytest source code. I find out that the problem is the function pytest_pycollect_makemodule always return OdooTestModule object but in the original pytest source code it will check the path first. If the path is __init__.py it will return Package object.
After I upgraded pytest to version 3.7, it cannot find any test in my project.
I look into pytest source code. I find out that the problem is the function
pytest_pycollect_makemodule
always returnOdooTestModule
object but in the original pytest source code it will check the path first. If the path is__init__.py
it will returnPackage
object.