... すべての標準の Python のユニットテスト機能が利用可能なまま、以下の各セクションで説明するような便利な追加機能を追加できます。 SimpleTestCase ¶ class SimpleTestCase [ソース] ¶ 以下の機能を追加する、 unittest.TestCase のサブクラスです。 便利なアサーションには以下の ... c_client attributes. データベースクエリを作る手薄との場合、サブクラス TransactionTestCase や TestCase を使用してください。 SimpleTestCase. databases ¶ SimpleTestCase はデフォルトでデータベースクエリを許可しません。各 SimpleTestCase テストはトランザクション内で ... 題が心配でない場合は、テストクラスの databases クラス属性を '__all__' に設定することで、この振る舞いを無効化できます。 警告 SimpleTestCase とそのサブクラス (例: TestCase など) は、クラス横断的な初期化を実現するために setUpClass() と tearDownClass() に依存してい ... ... すべての標準の Python のユニットテスト機能が利用可能なまま、以下の各セクションで説明するような便利な追加機能を追加できます。 SimpleTestCase ¶ class SimpleTestCase [ソース] ¶ 以下の機能を追加する、 unittest.TestCase のサブクラスです。 便利なアサーションには以下の ... c_client attributes. データベースクエリを作る手薄との場合、サブクラス TransactionTestCase や TestCase を使用してください。 SimpleTestCase. databases ¶ SimpleTestCase はデフォルトでデータベースクエリを許可しません。各 SimpleTestCase テストはトランザクション内で ... 題が心配でない場合は、テストクラスの databases クラス属性を '__all__' に設定することで、この振る舞いを無効化できます。 警告 SimpleTestCase とそのサブクラス (例: TestCase など) は、クラス横断的な初期化を実現するために setUpClass() と tearDownClass() に依存してい ... ... クラス) 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( ... ... クラス) 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( ... ... redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no longer converts redirects to absolute URIs ( #26428 ). Fixed TimeField microsecond ... ーワード Fixed regression バグ 修正 redirects MySQL SQLite values template リリースノート Added support relative path client SimpleTestCase assertRedirects because longer converts absolute URIs TimeField microseconds round クイック検索 Last update: 2026年10月09日 ... ... redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no longer converts redirects to absolute URIs ( #26428 ). Fixed TimeField microsecond ... regression バグ 修正 redirects MySQL SQLite values template リリースノート いくつ Added support relative path test client SimpleTestCase assertRedirects 関連するページ Django 3.1.4 リリースノート Django 1.11.8 リリースノート Django 5.1.7 リリースノート 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 ... ... 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 ... ... 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 ... he 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 ... ... 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 ... he 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 ... 2026年10月08日