per page, with , order by , clip by
Results of 1 - 10 of about 11 for runtests (0.005 sec.)
Unit tests 14385
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
GeoDjango アプリのテスト 9122
GeoDjango アプリのテスト このドキュメントには、 PostGIS ユーザのための追加の注意事項と設定が含まれています。 PostGIS 設定 注釈 以下の設定には合理的なデフォルト値が設定されており、手動で設定する必要はありません。 POSTGIS_VERSION GeoDjango の ... PostGIS インストーラには 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 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/testing.html
Djangoにはじめて貢献する 8926
Djangoにはじめて貢献する はじめに コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ちょっとした機能を追加したいと考えているかもしれません(ただし、新機能の提案は 新機能の提案方法 に ... トを調べるか、発生したエラーメッセージをウェブで検索してください。 これでテストスイートを実行する準備が整いました: /  $ ./runtests.py ...\> runtests.py さあ、座ってリラックスしてください。Django のテストスイート全体には何千ものテストがあり、コンピュータ ... のテストを実行して、どうなるか見てみましょう。 cd でDjangoの tests/ ディレクトリへと移動してから実行してください。 /  $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストが正しく実行されれば追加したテストメソッドに対して、こちらのエラーとともに1 ... ードが正しく機能しているかどうかを確認できます。もう一度、Django の tests/ ディレクトリに移動して以下を実行します: /  $ ./runtests.py shortcuts ...\> runtests.py shortcuts テストはすべて成功するはずです。失敗した場合は、正しいファイルに対して正しく関数を ...
https://man.mtool.work/django/6.1/intro/contributing.html
Sprint quickstart guide 8464
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
Django 1.1.2 リリースノート 8321
Django 1.1.2 リリースノート Django 1.1.2 へようこそ! This is the second "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. Django 1.1.2 maintains backwards compatibility with Djang ... ート . 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 ...
https://man.mtool.work/django/6.1/releases/1.1.2.html
Django 1.2.4 リリースノート 8268
Django 1.2.4 リリースノート Django 1.2.4 へようこそ! This is the fourth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With one exception, Django 1.2.4 maintains backwards comp ... ner , added in this release. In addition, the GeoDjango test suite is now included when running the Django test suite with runtests.py and using spatial database backends . ...
https://man.mtool.work/django/6.1/releases/1.2.4.html
チケットをトリアージする 8161
チケットをトリアージする Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided to add. As in any garden, sometimes there are weeds to be ... run standalone. For our example, we'll pretend we created tests/migrations/test_regression.py , which can be run with: $ ./runtests.py migrations.test_regression Next, we mark the current point in history as being "bad" since the test fails: $ git bisect ... hly Y steps ) ... Now we're ready for the fun part: using git bisect run to automate the rest of the process: $ git bisect run tests/runtests.py migrations.test_regression You should see git bisect use a binary search to automatically checkout revisions ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
Django 1.2 リリースノート 8055
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... mary key value may not be predictable or known. Fast failure for tests Both the test subcommand of django-admin.py and the runtests.py script used to run Django's own test suite now support a --failfast option. When specified, this option causes the test ... o handle or filter out the _state attribute. 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, because a failure of 256 or more tests res ...
https://man.mtool.work/django/6.1/releases/1.2.html
Submitting contributions 8019
Submitting contributions We're always grateful for contributions to Django's code. Indeed, bug reports with associated contributions will get fixed far more quickly than those without a solution. Typo fixes and trivial documentation changes ... e good test coverage, these warnings are converted to errors when running the test suite with warnings enabled: python -Wa runtests.py . Thus, when adding a RemovedInDjangoXXXXWarning you need to eliminate or silence any warnings generated when running t ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/submitting...
テストに関する高度なトピック 8019
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... 思うかもしれません。 一般的な慣習は、アプリケーションコードの隣に tests ディレクトリを置き、以下のような構成にすることです: runtests.py polls/ __init__.py models.py ... tests/ __init__.py models.py test_settings.py tests.py いくつかのファイルの中身を見てみ ... ましょう: runtests.py #!/usr/bin/env python import os import sys import django from django.conf import settings from django.test.utils import ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
PREV 1 2 NEXT