django の doctest を試すために、非常に単純な django プロジェクトを開始しました。
# models.py
"""
>>> 1+1 == 2
True
"""
getを実行しpython manage.py test
ます:
Creating test database for alias 'default'...
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Destroying test database for alias 'default'...
を実行するのと同じpython manage.py play
です。
設定してこれを修正しました:
INSTALLED_APPS = (
...
'django_nose',
)
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = ['--with-doctest']
私の質問は、私の設定が必要かどうかということです。ドキュメントに記載されていない原因: https://docs.djangoproject.com/en/1.4/topics/testing/
私のdjangoのバージョンは1.7ですが、1.4と1.7の違いですか?