Replies: 2 comments
-
from mypackage import myfixture # noqa ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can turn your fixtures into a installable plugin via the Alternatively, you can set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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