per page, with , order by , clip by
Results of 1 - 10 of about 25 for SimpleTestCase (0.007 sec.)
テストツール 15210
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... すべての標準の Python のユニットテスト機能が利用可能なまま、以下の各セクションで説明するような便利な追加機能を追加できます。 SimpleTestCase class SimpleTestCase [ソース] 以下の機能を追加する、 unittest.TestCase のサブクラスです。 便利なアサーションには以下のよう ... c_client attributes. データベースクエリを作る手薄との場合、サブクラス TransactionTestCase や TestCase を使用してください。 SimpleTestCase. databases SimpleTestCase はデフォルトでデータベースクエリを許可しません。各 SimpleTestCase テストはトランザクション内で実 ... 題が心配でない場合は、テストクラスの databases クラス属性を '__all__' に設定することで、この振る舞いを無効化できます。 警告 SimpleTestCase とそのサブクラス (例: TestCase など) は、クラス横断的な初期化を実現するために setUpClass() と tearDownClass() に依存してい ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
索引 11241
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... クラス) ASin (django.db.models.functions のクラス) AsKML (django.contrib.gis.db.models.functions のクラス) assertContains() (SimpleTestCase のメソッド) assertFieldOutput() (SimpleTestCase のメソッド) assertFormError() (SimpleTestCase のメソッド) assertFormSetErr ... or() (SimpleTestCase のメソッド) assertHTMLEqual() (SimpleTestCase のメソッド) assertHTMLNotEqual() (SimpleTestCase のメソッド) assertInHTML() ... (SimpleTestCase のメソッド) assertJSONEqual() (SimpleTestCase のメソッド) assertJSONNotEqual() (SimpleTestCase のメソッド) assertMessages( ...
https://man.mtool.work/django/6.1/genindex.html
システムチェックフレームワーク 9182
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... jango.core.management import call_command from django.core.management.base import SystemCheckError from django.test import SimpleTestCase , modify_settings , override_settings class SystemCheckIntegrationTest ( SimpleTestCase ): @override_settings ( SITE_ID = ... あることをアサートできます: from io import StringIO from django.core.management import call_command from django.test import SimpleTestCase , override_settings class EnableAnalyticsDeploymentCheckTest ( SimpleTestCase ): @override_settings ( ENABLE_ANALYTICS = N ...
https://man.mtool.work/django/6.1/topics/checks.html
Unit tests 8800
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 ... emporary Apps instance. To do this, use the isolate_apps() decorator: from django.db import models from django.test import SimpleTestCase from django.test.utils import isolate_apps class TestModelDefinition ( SimpleTestCase ): @isolate_apps ( "app_label" ) def ... the set of targeted app_label as arguments: tests/app_label/tests.py from django.db import models from django.test import SimpleTestCase from django.test.utils import isolate_apps class TestModelDefinition ( SimpleTestCase ): @isolate_apps ( "app_label" , "ot ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django 1.9.6 リリースノート 8667
Django 1.9.6 リリースノート May 2, 2016 Django 1.9.6 では、1.9.5 にあったいくつかのバグを修正しました。 バグ修正 Added support for relative path redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no long ...
https://man.mtool.work/django/6.1/releases/1.9.6.html
Django の機能廃止のタイムライン 8551
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... rib.postgres.fields.CIText ミックスインは削除されます。 BaseGeometryWidget の map_width と map_height 属性は削除されます。 SimpleTestCase.assertFormsetError() メソッドは削除されます。 TransactionTestCase.assertQuerysetEqual() メソッドは削除されます。 JSONField ... ます。 django.contrib.postgres.constraints.ExclusionConstraint の opclasses 引数は削除されます。 ドキュメント化されていない SimpleTestCase.assertFormError() および assertFormsetError() への errors=None という引数の渡し方は削除されます。 django.contrib.sessions. ... ト経由のログアウトのサポートが削除されます。 datetime.timezone.utc への django.utils.timezone.utc エイリアスは削除されます。 SimpleTestCase.assertFormError() および assertFormsetError() にレスポンスオブジェクトとフォーム/フォームセット名を渡すことはできなくなりま ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 5.1 リリースノート 8551
Django 5.1 リリースノート 2024年8月7日 Django 5.1 へようこそ! このリリースノートでは、 バージョン 5.1 の新機能 と、Django 5.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... = { "action" : "delete" }) await self . async_client . post ( "/items/1" , query_params = { "action" : "delete" }) 新しい SimpleTestCase.assertNotInHTML() アサーションにより、指定されたHTMLヘイスタック内に特定のHTMLフラグメントが含まれていないことをテストでき ... るようになりました。 テストの独立性を確保するため、 SimpleTestCase 内でスレッド内のデータベース接続が許可されなくなりました。 バリデータ 新しい DomainNameValidator は、国際化ドメイン名を含む ... > 要素を含むようになりました。 JavaScript ファイル collapse.js は、Django admin サイトでは不要になったので削除されました。 SimpleTestCase.assertURLEqual() と assertInHTML() は ": " を msg_prefix に追加します。これにより、他のアサーションの振る舞いと一致するよう ...
https://man.mtool.work/django/6.1/releases/5.1.html
Django 2.2 リリースノート 8418
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... rences=True to serializers.deserialize() . Additionally, loaddata handles forward references automatically. テスト The new SimpleTestCase.assertURLEqual() assertion checks for a given URL, ignoring the ordering of the query string. assertRedirects() uses the n ... first positional argument, if it accepts it. Support for overrides that don't accept it will be removed in Django 3.1. The SimpleTestCase.allow_database_queries , TransactionTestCase.multi_db , and TestCase.multi_db attributes are deprecated in favor of Simple ...
https://man.mtool.work/django/6.1/releases/2.2.html
Djangoにはじめて貢献する 8285
Djangoにはじめて貢献する はじめに コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ちょっとした機能を追加したいと考えているかもしれません(ただし、新機能の提案は 新機能の提案方法 に ... うファイルを新たに作ります。以下のコードを追加してください。 from django.shortcuts import make_toast from django.test import SimpleTestCase class MakeToastTests ( SimpleTestCase ): def test_make_toast ( self ): self . assertEqual ( make_toast (), "toast" ) このテ ... +++ b/tests/shortcuts/test_make_toast.py @@ -0,0 +1,7 @@ +from django.shortcuts import make_toast +from django.test import SimpleTestCase + + +class MakeToastTests(SimpleTestCase): + def test_make_toast(self): + self.assertEqual(make_toast(), 'toast') 変更内容 ...
https://man.mtool.work/django/6.1/intro/contributing.html
Django 1.7.9 リリースノート 8153
Django 1.7.9 リリースノート July 8, 2015 Django 1.7.9 fixes several security issues and bugs in 1.7.8. Denial-of-service possibility by filling session store In previous versions of Django, the session backends created a new empty record in ... バグ修正 Prevented the loss of null / not null column properties during field renaming of MySQL databases ( #24817 ). Fixed SimpleTestCase.assertRaisesMessage() on Python 2.7.10 ( #24903 ). ...
https://man.mtool.work/django/6.1/releases/1.7.9.html
PREV 1 2 3 NEXT