Why isn't django-nose running the doctests in my models?
Posted
by Conley Owens
on Stack Overflow
See other posts from Stack Overflow
or by Conley Owens
Published on 2010-04-10T18:07:46Z
Indexed on
2010/04/10
18:13 UTC
Read the original article
Hit count: 450
I'm trying to use doctests with django-nose. All my doctests are running, except not any doctests within a model (unless it is abstract).
class TestModel1(models.Model):
"""
>>> print 'pass'
pass
"""
pass
class TestModel2(models.Model):
"""
>>> print 'pass'
pass
"""
class Meta:
abstract = True
pass
The first doctest does not run and the second does. Why is this?
© Stack Overflow or respective owner