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

feat: Use conftest.py for global fixture definitions #21

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

lu-pl
Copy link
Contributor

@lu-pl lu-pl commented Jul 26, 2024

Importing fixtures is a pytest antipattern and causes Ruff to flag F811. See astral-sh/ruff#4046. Defining fixtures globally in conftest.py is the idiomatic way to remedy the problem.

Importing fixtures is a pytest antipattern and causes Ruff to flag F811.
See astral-sh/ruff#4046.
Defining fixtures globally in conftest.py is the idiomatic way to
remedy the problem.
@lu-pl lu-pl requested a review from b1rger July 29, 2024 06:35
@lu-pl lu-pl merged commit 98f8933 into main Jul 29, 2024
7 checks passed
@lu-pl lu-pl deleted the lupl/conftest branch October 18, 2024 04:37
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.

2 participants