jeudi 5 novembre 2015

Pytest fixture handling

I use pytest for integration testing of HTTP server API. My fixtures divide into "requests" (something I send to server) and "entities" (some entities I need for my tests). I put all my fixtures in conftest files, sometimes I use one fixture in another, but there are too many fixtures in this files. So, I don't know how to properly handle them. Is there any plugins or tool to trace fixtures' inheritance or usage? Should I reorganize my fixtures for better tracing? P.S. py.test --fixture show only fixtures without any explanation

Aucun commentaire:

Enregistrer un commentaire