Replies: 1 comment
-
I think I answered my own question here, just use a
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a directory setup like:
Running
pytest
works great and runs the tests, of course. Now I also want to runpytest --doctest-modules my_package
to test the docstrings incode.py
. What is the correct way to setup fixtures when run this way? I don't want to create aconftest.py
file in my actual package sitting next tocode.py
because then it would be part of the actual package and would bedistributed. But I do need to use some fixtures for the docstring tests. Mainly I need a couple fixtures to do some one-time setup to avoid a long calculation in each test (i.e. just do that long calculation once and then use the results in all the docstring tests).Beta Was this translation helpful? Give feedback.
All reactions