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

fixtures: provide per-scope fixtures for unblocking database access #1162

Closed
wants to merge 1 commit into from

Conversation

m000
Copy link

@m000 m000 commented Nov 8, 2024

Allow the convenience of db fixture for all fixture scopes.

The db fixture is very convenient when writing fixtures that create objects. However, for non function-scoped fixtures using db is not possible. This PR adds db_<scope> fixtures that can be used to the same effect as db when creating fixtures that use other scopes.

Allow the convenience of `db` fixture for all fixture scopes.
@m000
Copy link
Author

m000 commented Nov 8, 2024

NVM. For anyone attempting the same thing, this has side-effects: by enabling database access from a wider scope, (of course) ALL tests in that scope will be allowed database access.

@m000 m000 deleted the scoped-db-fixtures branch November 8, 2024 14:43
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

Successfully merging this pull request may close these issues.

1 participant