Error collecting test with --doctest-module #8363
Unanswered
ernestoarbitrio
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Given that
pytest
works perfectly with all my unit and integration tests, i'm facing a problem dough when trying to run doctests with this command:pytest -svv tests/unit --doctest-modules
The error seems related to a fixture (custom) i normally use in my tests, so I got this error:
and then
Obviously that fixture doesn't exists cause the
--wrapped
file is the one generated from the doctest.py module.I wonder if someone can give me a hint or tell me if I'm doing something wrong 🤷🏽♂️
Thx
Beta Was this translation helpful? Give feedback.
All reactions