Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I pass function-scope fixtures (e.g. db sessions) to each Factory in combination with pytest-asyncio? #205

Open
rinarakaki opened this issue Sep 27, 2023 · 0 comments

Comments

@rinarakaki
Copy link

rinarakaki commented Sep 27, 2023

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.

@rinarakaki rinarakaki changed the title How can I pass session-scope fixtures (e.g. db sessions) to each Factory in combination with pytest-asyncio? How can I pass function-scope fixtures (e.g. db sessions) to each Factory in combination with pytest-asyncio? Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant