... o.git django-repo $ cd django-repo/tests $ python -m pip install -e .. $ python -m pip install -r requirements/py3.txt $ ./runtests.py ...\> git clone https://github.com/YourGitHubName/django.git django-repo ...\> cd django-repo\tests ...\> py -m pip ins ... tall -e .. ...\> py -m pip install -r requirements\py3.txt ...\> runtests.py Installing the requirements will likely require some operating system packages that your computer doesn't have installe ... ndency locally. For example, if installing pylibmc fails, comment out its line in requirements/py3.txt and continue with ./runtests.py . Tests that require pylibmc will be skipped automatically. See Running all the tests for details on installing the opt ... ... o.git django-repo $ cd django-repo/tests $ python -m pip install -e .. $ python -m pip install -r requirements/py3.txt $ ./runtests.py ...\> git clone https://github.com/YourGitHubName/django.git django-repo ...\> cd django-repo\tests ...\> py -m pip ins ... tall -e .. ...\> py -m pip install -r requirements\py3.txt ...\> runtests.py Installing the requirements will likely require some operating system packages that your computer doesn't have installe ... ndency locally. For example, if installing pylibmc fails, comment out its line in requirements/py3.txt and continue with ./runtests.py . Tests that require pylibmc will be skipped automatically. See Running all the tests for details on installing the opt ... ... stGIS インストーラには template_postgis というタイトルのテンプレート空間データベースが含まれています。 GeoDjangoのテスト ¶ runtests.py を使用して Djangoテストスイートを実行する 際に GeoDjango テストを実行するには、設定ファイル内のすべてのデータベースが 空 ... .db.backends.postgis" , "NAME" : "other" , "USER" : "geodjango" , }, } SECRET_KEY = "django_tests_secret_key" 上記の設定が runtests.py と同じディレクトリにある postgis.py ファイルにあるとすると、コマンドを実行するときに、すべての Django と GeoDjango のテ ... ストが実行されます: $ ./runtests.py --settings = postgis GeoDjango のテストスイートだけを実行するには、 gis_tests を指定します: $ ./runtests.py --settings ... ... stGIS インストーラには template_postgis というタイトルのテンプレート空間データベースが含まれています。 GeoDjangoのテスト ¶ runtests.py を使用して Djangoテストスイートを実行する 際に GeoDjango テストを実行するには、設定ファイル内のすべてのデータベースが 空 ... .db.backends.postgis" , "NAME" : "other" , "USER" : "geodjango" , }, } SECRET_KEY = "django_tests_secret_key" 上記の設定が runtests.py と同じディレクトリにある postgis.py ファイルにあるとすると、コマンドを実行するときに、すべての Django と GeoDjango のテ ... ストが実行されます: $ ./runtests.py --settings = postgis GeoDjango のテストスイートだけを実行するには、 gis_tests を指定します: $ ./runtests.py --settings ... ... トを調べるか、発生したエラーメッセージをウェブで検索してください。 これでテストスイートを実行する準備が整いました: / $ ./runtests.py ...\> runtests.py さあ、座ってリラックスしてください。Django のテストスイート全体には何千ものテストがあり、コンピュータ ... のテストを実行して、どうなるか見てみましょう。 cd でDjangoの tests/ ディレクトリへと移動してから実行してください。 / $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストが正しく実行されれば追加したテストメソッドに対して、こちらのエラーとともに1 ... ードが正しく機能しているかどうかを確認できます。もう一度、Django の tests/ ディレクトリに移動して以下を実行します: / $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストはすべて成功するはずです。失敗した場合は、正しいファイルに対して正しく関数を ... ... トを調べるか、発生したエラーメッセージをウェブで検索してください。 これでテストスイートを実行する準備が整いました: / $ ./runtests.py ...\> runtests.py さあ、座ってリラックスしてください。Django のテストスイート全体には何千ものテストがあり、コンピュータ ... のテストを実行して、どうなるか見てみましょう。 cd でDjangoの tests/ ディレクトリへと移動してから実行してください。 / $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストが正しく実行されれば追加したテストメソッドに対して、こちらのエラーとともに1 ... ードが正しく機能しているかどうかを確認できます。もう一度、Django の tests/ ディレクトリに移動して以下を実行します: / $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストはすべて成功するはずです。失敗した場合は、正しいファイルに対して正しく関数を ... ... pip install pre-commit ...\> pre-commit install See Pre-commit checks for further details. Run the tests: / $ ./tests/runtests.py ...\> tests\runtests.py See Running the unit tests for more information. While tests will all pass in CI, they may not ... ... pip install pre-commit ...\> pre-commit install See Pre-commit checks for further details. Run the tests: / $ ./tests/runtests.py ...\> tests\runtests.py See Running the unit tests for more information. While tests will all pass in CI, they may not ... ... Backwards-incompatible changes in 1.1.2 ¶ Test runner exit status code ¶ The exit status code of the test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, since a failure of 256 or more tests resul ... ... Backwards-incompatible changes in 1.1.2 ¶ Test runner exit status code ¶ The exit status code of the test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, since a failure of 256 or more tests resul ... 2026年10月08日