camptocamp / pytest-odoo

pytest plugin to run Odoo tests
GNU Affero General Public License v3.0
68 stars 45 forks source link

Fix incompatibility with pytest 3.7 #24

Closed bakamitai456 closed 6 years ago

bakamitai456 commented 6 years ago

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.

ddufresne commented 6 years ago

@kosolart thank you, works for me

guewen commented 6 years ago

Released in 0.4.3