I found that setup_method and teardown_method are not called for the tests generated by pytest_generate_tests(). Therefore I have to manually call them in each test method. I also found a post which supported this observation:<div>
<br></div><div><a href="http://www.mail-archive.com/py-dev@codespeak.net/msg00143.html">http://www.mail-archive.com/py-dev@codespeak.net/msg00143.html</a></div><div><br></div><div>Is there any reason that this behavior is by design or it&#39;s a bug ?</div>
<div><br></div><div><br></div>