Answer the question
In order to leave comments, you need to log in
How to import doctest tests?
Let's say I want to import a test from the doc_test.py module into another doc_test_launcher.py module.
Also, I need doc_test_launcher.py to have all objects from doc_test_.py (for later testing)
How can I do that?
# Я пробовал через переменную __test__, но на выходе получаю лишь тестирование документации к самому модулю (в доки к функциям тестировщик почему-то не заходил).
from tests import doc_test
import doctest
__test__ = {external: doc_test}
doctest.testmode()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question