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

Scope #81

Open
apocalypse2012 opened this issue Sep 10, 2019 · 2 comments
Open

Scope #81

apocalypse2012 opened this issue Sep 10, 2019 · 2 comments

Comments

@apocalypse2012
Copy link

There appears to be no way to define the scope of the resulting fixtures. Not sure if this is unsupported or undocumented, but it is a needed feature. Creating a new fixture scoped for "module" or "session" is not workable as the scope change results in an exception. Currently, all registered Factories are 'function' scoped.

@youtux
Copy link
Contributor

youtux commented Sep 15, 2019

Unfortunate the architecture of pytest-facoryboy heavily relies on function-scoped fixtures; I see no easy way to address this without a major rewrite.

@espoirMur
Copy link

I am having the same issue here, any workaround? @apocalypse2012

What is involved in that major rewrite so that we can see how to implement it? @youtux

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

3 participants