on-internet
← Community

Any automated way to view a network of pytest fixtures/functions defined in the conftest.py file?

Stack Overflow ·

I've inherited a large data science workflow (in python) that uses many functions scattered across many modules. Luckily for me, around 50% of these functions already have pytest coverage and make use of a conftest.py file which sets up tons of fixtures and mock objects for testing (dfs, dicts, lists, etc. with fake data). I'm responsible for creating the other 50% of tests. However, most fixtures call a maze of other fixtures from within conftest or functions/classes from internal modules, and I'm having a very hard time reverse engineering a given fixture to see how it interacts with the oth

Comments

Sign in or sign up to comment and upvote.

No comments yet.