pytest-factoryboy
pytest-factoryboy copied to clipboard
How can I pass function-scope fixtures (e.g. db sessions) to each Factory in combination with pytest-asyncio?
I want each factory instance to have access to pytest-function scoped (global) fixtures such as db session but have no means to inject hooks to pytest fixtures at each factory's instantiation.