per page, with , order by , clip by
Results of 1 - 10 of about 66 for tests (0.003 sec.)
Unit tests 14997
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 ... ructure that ships with Django for testing applications. See テストを書いて実行する for an explanation of how to write new tests. Running the unit tests Quickstart First, fork Django on GitHub . Second, create and activate a virtual environment. If yo ... miliar with how to do that, read our contributing tutorial . Next, clone your fork, install some requirements, and run the tests: /  $ git clone https://github.com/YourGitHubName/django.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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
JavaScript code 12357
JavaScript code While most of Django core is Python, the admin and gis contrib apps contain JavaScript code. Please follow these coding standards when writing JavaScript code for inclusion in Django. Code style Please conform to the indenta ... conjunction, there is an emphasis on admin JavaScript performance and minimizing overall admin media file size. JavaScript tests Django's JavaScript tests can be run in a browser or from the command line. The tests are located in a top level js_tests ... directory. テストを書く Django's JavaScript tests use QUnit . Here is an example test module: QUnit . module ( 'magicTricks' , { beforeEach : function () { const $ = django ... onsult the QUnit documentation for information on the types of assertions supported by QUnit . テストの実行 The JavaScript tests may be run from a web browser or from the command line. Testing from a web browser To run the tests from a web browser, op ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
Sprint quickstart guide 9675
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 ... ) Managing multiple versions of Python Python dependency management, including virtual environments The concept of running tests and building documentation If any of these are unfamiliar, see Djangoにはじめて貢献する for a longer, step-by-step tutoria ... vate If you are not using a Unix-like system, see the platform-specific instructions . Install the dependencies to run the tests and build the documentation: /  $ python -m pip install -U pip $ python -m pip install -e . -r tests/requirements/py3.t ... xt -r docs/requirements.txt ...\> py -m pip install -U pip ...\> py -m pip install -e . -r tests\requirements\py3.txt -r docs\requirements.txt Install pre-commit hooks so that formatting and linting run automatically be ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
チケットをトリアージする 9275
チケットをトリアージする 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 ... or example, here's the typical lifecycle of a ticket: Alice creates a ticket and opens an incomplete pull request (missing tests, incorrect implementation). Bob reviews the pull request, marks the ticket as "Accepted", sets the flags "needs tests" and ... icket automatically into the "waiting on author" queue within the "accepted" stage. Alice updates the pull request, adding tests (but not yet fixing the implementation), and removes the two flags. The ticket moves into the "needs PR review" queue. Cha ... for people to review the supplied solution. This means downloading the patch and trying it out, verifying that it contains tests and docs, running the test suite with the included patch, and leaving feedback on the ticket. Waiting On Author (Accepted ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
Django 1.6 リリースノート 8790
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... For backwards compatibility, this feature is disabled by default. See 持続的 (persistent) な接続 for details. Discovery of tests in any test module Django 1.6 ships with a new test runner that allows more flexibility in the location of tests. The prev ... ious runner ( django.test.simple.DjangoTestSuiteRunner ) found tests only in the models.py and tests.py modules of a Python package in INSTALLED_APPS . The new runner ... nto unittest2 (the version of unittest in the Python 2.7+ standard library, and bundled with Django). With test discovery, tests can be located in any module whose name matches the pattern test*.py . In addition, the test labels provided to ./manage.p ...
https://man.mtool.work/django/6.1/releases/1.6.html
新しいコントリビューターへのアドバイス 8248
新しいコントリビューターへのアドバイス 新しいコントリビューターで、何をするべきかわかりませんか? 助けたいと思っているのにどこから手を付ければいいのかわかりませんか? このセクションはあなたのためにあります。 立ち上げる! Django へのコントリビュ ... This will help you build familiarity with the codebase and processes. Mark the appropriate flags if a patch needs docs or tests. Look through the changes a patch makes, and keep an eye out for syntax that is incompatible with older but still supporte ... d versions of Python. Run the tests and make sure they pass. Where possible and relevant, try them out on a database other than SQLite. Leave comments and fee ... トガンアプローチは、結局、良いことよりも悪いことの方が多いのです。 Be rigorous When we say " PEP 8 , and must have docs and tests", we mean it. If a patch doesn't have docs and tests, there had better be a good reason. Arguments like "I couldn't find a ...
https://man.mtool.work/django/6.1/internals/contributing/new-contributors.html
Working with Git and GitHub 8105
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... commit does. If you need to do additional work on your branch, commit as often as necessary: git commit -m 'Added two more tests for edge cases.' Publishing work You can publish your work on GitHub by running: git push origin ticket_xxxxx When you go ... d then paragraphs wrapped at 72 characters thereafter -- see the committing guidelines for more details, documentation and tests, if needed -- actually tests are always needed, except for documentation changes. The test suite must pass and the documen ... n the related Trac ticket explaining what you've done. In particular, you should note the environment in which you ran the tests, for instance: "all tests pass under SQLite and MySQL". Pull requests at GitHub have only two states: open and closed. The ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
Djangoにはじめて貢献する 8105
Djangoにはじめて貢献する はじめに コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ちょっとした機能を追加したいと考えているかもしれません(ただし、新機能の提案は 新機能の提案方法 に ... テストスイートを実行したことがない人は、事前に一度実行して出力に慣れておくと良いでしょう。 テストスイートを実行する前に、 cd tests コマンドを使って Django の tests/ ディレクトリに移動し、次を実行してテストの依存関係をインストールします: /  $ python - ... 調べるか、発生したエラーメッセージをウェブで検索してください。 これでテストスイートを実行する準備が整いました: /  $ ./runtests.py ...\> runtests.py さあ、座ってリラックスしてください。Django のテストスイート全体には何千ものテストがあり、コンピュータ ... テストは、テストを実行するために必要な外部ライブラリがインストールされていないことが原因です; 依存については Running all the tests を参照し、あなたの変更に関連するテストにする依存ライブラリがインストールしてください (このチュートリアルでは必要ありません ...
https://man.mtool.work/django/6.1/intro/contributing.html
テストを書いて実行する 8105
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... のドキュメントを読んでください。 どこにテストを書くべき? デフォルトの startapp テンプレートは、新しいアプリケーション内に tests.py ファイルを作成します。テストの数が少ないうちは、ここに書くのがいいかもしれません。しかし、テストスイートが大きくなってき ... ./manage.py test Test discovery is based on the unittest module's built-in test discovery . By default, this will discover tests in any file named test*.py under the current working directory. ./manage.py test に好きな数の「テストラベル」を与えることで ... ase サブクラス、テストメソッドへのドット区切りの Python パスを指定します。たとえば、以下のように指定します。 # Run all the tests in the animals.tests module $ ./manage.py test animals.tests # Run all the tests found within the 'animals' package $ ./ma ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
Contributing code 8062
Contributing code So you'd like to write some code, documentation or tests to improve Django? There are several ways you can help Django's development. Tutorials The Django tutorial contains a whole section that walks you step-by-step throu ... ins useful guidance on specific topics: How to submit a patch to Django for new and/or fixed behavior How to write and run tests How to run Django's unit tests How to work with Git and GitHub Related topics It's important to understand how we work and ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/
PREV 1 2 3 4 5 6 7 NEXT