views:

107

answers:

1

In my Django app, I have a mix of doctests (defined in models.py and views.py) and unit tests (defined in tests.py. I can invoke an individual unit test by doing:

manage.py test app.TestCase

However, this doesn't seem to work for the doctests. Is there some way to run a single doctest (defined in models.py or views.py)?

+2  A: 

I think the way python doctests work is to simply run all doctests in a module in the same interpreter instance.

I doubt that manage.py can alter that basic behavior of python doctests.

celopes