... 。 class DiscoverRunner ( pattern = 'test*.py' , top_level = None , verbosity = 1 , interactive = True , failfast = False , keepdb = False , reverse = False , debug_mode = False , debug_sql = False , parallel = 0 , tags = None , exclude_tags = None , te ... くても実行できる必要があります。 failfast が True の場合、テストスイートは最初のテストの失敗を検出した後に実行を停止します。 keepdb が True の場合、テストスイートは既存のデータベースを使用します。 False の場合は、新しいデータベースを作成し、既存のデータベ ... 除し、通常のメールサービスを復元することが含まれます。 setup_databases ( verbosity , interactive , * , time_keeper = None , keepdb = False , debug_sql = False , parallel = 0 , aliases = None , serialized_aliases = None , ** kwargs ) [ソース] テスト用デー ... ... may hang on startup ( #29774 ). Fixed a regression in Django 2.0 where test databases aren't reused with manage.py test --keepdb on MySQL ( #29827 ). Fixed a regression where cached foreign keys that use to_field were incorrectly cleared in Model.save ... ... se server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if the user has an active session (such as an attacker's connection). A randomly generated password is now used ... ... lowed using ORM write methods after disabling autocommit with set_autocommit(False) ( #24921 ). Fixed the manage.py test --keepdb option on Oracle ( #25421 ). Fixed incorrect queries with multiple many-to-many fields on a model with the same 'to' model ... ... se server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if the user has an active session (such as an attacker's connection). A randomly generated password is now used ... ... se server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if the user has an active session (such as an attacker's connection). A randomly generated password is now used ... ... sh when renaming the target model of a many-to-many relation ( #24725 ). Removed flushing of the test database with test --keepdb , which prevented apps with data migrations from using the option ( #24729 ). Fixed makemessages crash in some locales ( # ... ... ngo 2.0 において、PostgreSQL ですでにデータベースが存在し、ユーザーがデータベース作成権限を持たない場合に manage.py test --keepdb が 失敗するリグレッションを修正しました ( #29613 )。 Django 2.0 で、 __in ルックアップを使用した Q オブジェクトと list を組 ... ... ます。 テストが成功したかどうかにかかわらず、すべてのテストの実行が終わった時点で、テストデータベースは破棄されます。 test --keepdb オプションを指定すれば、テストデータベースの破棄を防ぐことができます。これにより、複数回テストを実行しても、テストデータベ ... 必要なハッシュアルゴリズムが複数あっても、追加しておくことを忘れないようにしてください。 テストデータベースを保存する test --keepdb オプションで、テスト間でテストデータベースを保存できます。テスト実行の際、データベース作成および破棄にかかる時間を大幅に短 ... ... ter the database flush. In older versions, this data was loaded at the beginning of the test, but this prevents the test --keepdb option from working properly (the database was empty at the end of the whole test suite). This change shouldn't have an im ... 2026年10月08日