我有一个Django应用程序,其部分最初是用Django 1.2编写的,并且该应用程序一直升级到1.7.升级到1.7后,我从python manage.py check
收到以下警告:
System check identified some issues:
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks like this project was generated using Django 1.5 or earlier. You should ensure your tests are all running & behaving as expected. See https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for more information.
URL mentioned in the error message确实详细说明了所做的更改,但它没有给出任何提示,说明为什么会触发此警告或如何 suppress 它.尽管警告消息引用了Django 1.6,但它只是在升级到Django 1.7后才开始出现
我已经判断了Django 1.7下运行的单元测试的数量是否与Django 1.6.1下运行的相同.