Replies: 2 comments 5 replies
-
from mypackage import myfixture # noqa ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can turn your fixtures into a installable plugin via the Alternatively, you can set |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What approaches have worked for people when in comes to distributing pytest fixtures in a Python distribution on pypi?
I have some fixtures that I'm sure I'll end up using across several projects, but while the following works, I can see linters being unhappy with it as an unused import:
I can imagine a trivial function might make that happy, but the imports become uglier:
...and even then, I can see type checkers getting confused or unhappy.
What's working for other folks?
Beta Was this translation helpful? Give feedback.
All reactions