我遇到了 Django (1.10.6) Test Runner 无法找到我的测试的问题。我正在使用 Python 3.6。
以下作品:
python manage.py test apps.foo
但这不会:
python manage.py test
我的项目结构如下:
apps/
foo/
migrations/
__init__.py
admin.py
apps.py
models.py
tests.py
urls.py
views.py
manage.py
tests.py
看起来像这样:
from django.test import TestCase
class ConfirmationTests(TestCase):
def setUp(self):
pass
def test_email_confirm(self):
pass
在我的settings.py
:
INSTALLED_APPS = (
...
'apps.foo',
)
Test Runner 是否有任何理由无法接受我的测试?