When I do my tests with Django 1.7.1 it throws the next warning:
/usr/local/lib/python2.7/dist-packages/django/test/_doctest.py:59:
RemovedInDjango18Warning: The django.test._doctest module is deprecated;
use the doctest module from the Python standard library instead.
RemovedInDjango18Warning)
I also tried adding in the settings.py file this line:
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
But still throws the warning.
I write down the code from my test model file:
from django.test import TestCase
from myproject import tests, models
class TestModels(TestCase):
def test_rol(self):
rol = tests.create_rol()
rol.save()
self.assertTrue(isinstance(rol, models.Rol))
self.assertEqual(rol.name, rol.__unicode__())
I have read the docs from the Django Web page: https://docs.djangoproject.com/en/1.7/topics/testing/overview/ but still can't get a solution.
I am using Django-nose.
How can I solve this?
Thanks