per page, with , order by , clip by
Results of 1 - 8 of about 8 for setUpTestData (0.004 sec.)
Django 3.2.10 リリースノート 12435
Django 3.2.10 リリースノート 2021年12月7日 Django 3.2.10 fixes a security issue with severity "low" and a bug in 3.2.9. CVE-2021-44420: Potential bypass of an upstream access control based on URL paths HTTP requests for URLs with trailing n ... uld bypass an upstream access control based on URL paths. バグ修正 Fixed a regression in Django 3.2 that caused a crash of setUpTestData() with BinaryField on PostgreSQL, which is memoryview -backed ( #33333 ). ...
https://man.mtool.work/django/6.1/releases/3.2.10.html
Django 1.8.4 リリースノート 10898
Django 1.8.4 リリースノート August 18, 2015 Django 1.8.4 fixes a security issue and several bugs in 1.8.3. Denial-of-service possibility in logout() view by filling session store Previously, a session could be created when anonymously acces ... d when using the db_column name of a ForeignKey field with primary_key=True ( #12768 ). Prevented an exception in TestCase.setUpTestData() from leaking the transaction ( #25176 ). Fixed has_changed() method in contrib.postgres.forms.HStoreField ( #25215 , #25 ...
https://man.mtool.work/django/6.1/releases/1.8.4.html
テストを書いて実行する 9742
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... 対するディスクアクセスを避けるための便利な手段です。すべてのデータはメモリ内にとどまり、テスト実行の後に破棄されます。 Using setUpTestData to create test data Moving common test data to TestCase.setUpTestData() will reduce the number of times your tests need to ... create the data. Using TestCase.setUpTestData() will create test data once per class. While TestCase.setUp() will create the test data once per test. ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
テストツール 8983
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 最後に、deferrable なデータベース制約をチェックします。 さらに、以下のような追加メソッドを提供します。 classmethod TestCase. setUpTestData () [ソース] 上述のクラスレベルの atomic ブロックは、全体の TestCase に対して一度、クラスレベルでの初期データの作成を可能に ... を使うのに比べて高速なテストとなります。 例: from django.test import TestCase class MyTests ( TestCase ): @classmethod def setUpTestData ( cls ): # Set up data for the whole TestCase cls . foo = Foo . objects . create ( bar = "Test" ) ... def test1 ( self ): ... ... テストがトランザクションサポートのないデータベース (たとえば MyISAM エンジンの MySQL) で実行される場合、各テストの前に setUpTestData() が呼ばれ、高速化のメリットはなくなります。 Objects assigned to class attributes in setUpTestData() must support creating ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 3.2 リリースノート 8603
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... Cached template loaders are now correctly reloaded in development. テスト Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method. Such objects are now required to support creating deep copies with copy.deepcopy( ... 3.2 その他 Assigning objects which don't support creating deep copies with copy.deepcopy() to class attributes in TestCase.setUpTestData() is deprecated. Using a boolean value in BaseCommand.requires_system_checks is deprecated. Use '__all__' instead of True ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django 4.1 リリースノート 7446
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... upport for assigning objects which don't support creating deep copies with copy.deepcopy() to class attributes in TestCase.setUpTestData() is removed. Support for using a boolean value in BaseCommand.requires_system_checks is removed. The whitelist argument a ...
https://man.mtool.work/django/6.1/releases/4.1.html
Django の機能廃止のタイムライン 7067
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... 、 Django 3.2 リリースノート を参照してください。 copy.deepcopy() を使用して深いコピーを作成できないオブジェクトを TestCase.setUpTestData() のクラス属性に割り当てる機能のサポートは削除されます。 BaseCommand.requires_system_checks は真偽値をサポートしなくなりま ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 1.8 リリースノート 7067
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ts are now run within two nested atomic() blocks: one for the whole class and one for each test. The class method TestCase.setUpTestData() adds the ability to set up test data at the class level. Using this technique can speed up the tests as compared to usin ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 NEXT