我有一个 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确实详细说明了所做的更改,但它没有给出任何关于为什么触发此警告或如何禁止它的提示。即使警告消息引用了 Django 1.6,它也只是在升级到 Django 1.7 后才开始出现
我检查了在 Django 1.7 下运行的单元测试数量与在 Django 1.6.1 下运行的单元测试数量相同。