per page, with , order by , clip by
Results of 1 - 10 of about 25 for TransactionTestCase (0.006 sec.)
テストツール 13217
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... and asynchronous test clients via the client and async_client attributes. データベースクエリを作る手薄との場合、サブクラス TransactionTestCase や TestCase を使用してください。 SimpleTestCase. databases SimpleTestCase はデフォルトでデータベースクエリを許可しません。 ... st などの例外を意図的に発生させたい場合は、この問題を避けるために、必ず super() を呼び出す前に実行するようにしてください。 TransactionTestCase class TransactionTestCase [ソース] TransactionTestCase は SimpleTestCase を継承し、以下のようなデータベースに特有の機能を追 ... 機能をもとにしたスキップ 。 それ以外の特別な assert* メソッド。 Django's TestCase class is a more commonly used subclass of TransactionTestCase that makes use of database transaction facilities to speed up the process of resetting the database to a known state at th ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.5 リリースノート 11673
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... ed in the execution of tests that might be backward-incompatible for some testing setups: Database flushing in django.test.TransactionTestCase Previously, the test database was truncated before each test run in a TransactionTestCase . In order to be able to run uni ... t tests in any order and to make sure they are always isolated from each other, TransactionTestCase will now reset the database after each test run instead. No more implicit DB sequences reset TransactionTestCase tests use ... the database flushing actions described above. This has been changed so no sequences are implicitly reset. This can cause TransactionTestCase tests that depend on hardcoded primary key values to break. The new reset_sequences attribute can be used to force the old ...
https://man.mtool.work/django/6.1/releases/1.5.html
テストに関する高度なトピック 11274
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... でデータの複製が行われていることが原因ではありません。これはトランザクションに依存しているので、テストでは TestCase ではなく TransactionTestCase を使う必要があります。 テストデータベースの作成順をコントロールする デフォルトでは、 Django は全てのデータベースが default ... が作成され、最後に spades が作成されます。 DEPENDENCIES の定義に循環依存がある場合、 ImproperlyConfigured 例外が発生します。 TransactionTestCase の高度な機能 TransactionTestCase. available_apps 警告 この属性はプライベートAPIです。例えば、アプリケーションの読み込みの変 ... にアプリケーションのリストを指定すると、 Django はこれらのアプリケーションのモデルだけが利用可能であるかのように動作します。 TransactionTestCase の動作は以下のように変わります: post_migrate は、利用可能なアプリケーションの各モデルに対して、存在しない場合にコンテンツタ ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 2.2 リリースノート 10710
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... bAdmin ( BaseAdmin ): actions = BaseAdmin . actions + [ "b" ] django.contrib.gis Support for GDAL 1.9 and 1.10 is dropped. TransactionTestCase serialized data loading Initial data migrations are now loaded in TransactionTestCase at the end of the test, after the da ... was empty at the end of the whole test suite). This change shouldn't have an impact on your tests unless you've customized TransactionTestCase 's internals. sqlparse is required dependency Django のデータベース処理の一部をシンプルにするため、 sqlparse 0.2.2+ との依 ... 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 SimpleTestCase.databases , TransactionTestCase.data ...
https://man.mtool.work/django/6.1/releases/2.2.html
テストを書いて実行する 9730
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... クラスが最初に実行されます。 そして、他のすべての Django ベースのテスト ( SimpleTestCase をベースとしたテストケースクラス、 TransactionTestCase を含む) が、特定の順序を保証も強制もしない状態で実行されます。 最後に、その他の unittest.TestCase テスト (doctests を含む) ... あることもあります。 注釈 この新しいテスト順序は、テストケース順序の予期しない依存関係を明らかにするかもしれません。これは、 TransactionTestCase によってデータベース内に記述された宣言に依存する doctests のケースで、これらは独立的に実行できるように修正する必要がありま ... ちます。 ロールバックのエミュレーション マイグレーションで呼び出されるあらゆる初期データは、 TestCase テスト内のみで有効で、 TransactionTestCase 内では無効です。加えて、トランザクションがサポートされるバックエンドのみで有効です (最も重要な例外は MyISAM です)。これは、 ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
Django 3.1 リリースノート 8584
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... using the test --buffer option. DiscoverRunner now skips running the system checks on databases not referenced by tests . TransactionTestCase teardown is now faster on MySQL due to flush command improvements. As a side effect the latter doesn't automatically reset ... sequences on teardown anymore. Enable TransactionTestCase.reset_sequences if your tests require this feature. URL Path converters can now raise ValueError in to_url() to indicate n ... ure_user() method requires request as the first positional argument. Support for SimpleTestCase.allow_database_queries and TransactionTestCase.multi_db is removed. ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 3.2 リリースノート 8584
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ack functions passed to transaction.on_commit() in a list. This allows you to test such callbacks without using the slower TransactionTestCase . TransactionTestCase.assertQuerysetEqual() now supports direct comparison against another queryset rather than being rest ... now automatic AppConfig discovery. See Django 3.2 の新機能 for more details. Automatically calling repr() on a queryset in TransactionTestCase.assertQuerysetEqual() , when compared to string values, is deprecated. If you need the previous behavior, explicitly set t ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django 1.1 リリースノート 8186
Django 1.1 リリースノート July 29, 2009 Django 1.1 へようこそ! Django 1.1 includes a number of nifty new features , lots of bug fixes, and an easy upgrade path from Django 1.0. Backwards-incompatible changes in 1.1 Django has a policy of AP ... rely on invalid assumptions about the test environment, or if they require a specific test case ordering. For these cases, TransactionTestCase can be used instead. This is a just a quick fix to get around test case errors revealed by the new rollback approach; in t ... ting the database. This results in an immense speedup for most types of unit tests. See the documentation for TestCase and TransactionTestCase for a full description, and some important notes on database support. Test client improvements A couple of small -- but hi ...
https://man.mtool.work/django/6.1/releases/1.1.html
Django 1.2.5 リリースノート 8003
Django 1.2.5 リリースノート Django 1.2.5 へようこそ! This is the fifth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With four exceptions, Django 1.2.5 maintains backwards com ... e has never completely worked as advertised. When using database backends that don't support transactions, or when using a TransactionTestCase, data that has been inserted using custom SQL will not be visible during the testing process. Unfortunately, there was no ...
https://man.mtool.work/django/6.1/releases/1.2.5.html
索引 7804
索引 記号 | _ | 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 コマン ... メソッド) assertNotContains() (SimpleTestCase のメソッド) assertNotInHTML() (SimpleTestCase のメソッド) assertNumQueries() (TransactionTestCase のメソッド) assertQuerySetEqual() (TransactionTestCase のメソッド) assertRaisesMessage() (SimpleTestCase のメソッド) asser ... discover() (django.contrib.admin モジュール) autoescape template tag AutoField (django.db.models のクラス) available_apps (TransactionTestCase の属性) avalues() (backends.base.SessionBase のメソッド) Avg (django.db.models のクラス) Azimuth (django.contrib.gis.db.mo ... ZONE setting DATABASE_ROUTERS setting DatabaseError DATABASES setting databases (SimpleTestCase の属性) (TestCase の属性) (TransactionTestCase の属性) DataError DATAFILE setting DATAFILE_EXTSIZE setting DATAFILE_MAXSIZE setting DATAFILE_SIZE setting DATAFILE_TMP se ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 2 3 NEXT