Like this question . However, in my case, none of my doctest models work.
I am using Django 1.3 beta 1 .
# settings.py TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' INSTALLED_APPS = (
One of my models:
class ItemType(models.Model): ''' >>> temType.objects.all().count() == 0 True ''' name = models.CharField(max_length=32) def __unicode__(self): return self.name
It should crash due to initial_data fixture, but just in case, I tried it with the following:
class ItemType(models.Model): ''' >>> ItemType.objects.all().count() == -1 True ''' name = models.CharField(max_length=32) def __unicode__(self): return self.name
I tried to do the following:
./manage.py test --with-doctest my_app
With the Django test runner, I simply type the following for my processing:
./manage.py test my_app
Any suggestions?
source share