diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /tests/test_runner | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'tests/test_runner')
| -rw-r--r-- | tests/test_runner/test_discover_runner.py | 3 | ||||
| -rw-r--r-- | tests/test_runner/tests.py | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_runner/test_discover_runner.py b/tests/test_runner/test_discover_runner.py index 4c4a22397b..3c68a83595 100644 --- a/tests/test_runner/test_discover_runner.py +++ b/tests/test_runner/test_discover_runner.py @@ -364,7 +364,8 @@ class DiscoverRunnerTests(SimpleTestCase): def test_duplicates_ignored(self): """ - Tests shouldn't be discovered twice when discovering on overlapping paths. + Tests shouldn't be discovered twice when discovering on overlapping + paths. """ base_app = "forms_tests" sub_app = "forms_tests.field_tests" diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index a9fadc872b..2c1fc3ad68 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -907,7 +907,8 @@ class SetupDatabasesTests(unittest.TestCase): }, } ) - # Using the real current name as old_name to not mess with the test suite. + # Using the real current name as old_name to not mess with the test + # suite. old_name = settings.DATABASES[db.DEFAULT_DB_ALIAS]["NAME"] with mock.patch("django.db.connections", new=tested_connections): tested_connections["default"].creation.destroy_test_db( @@ -969,8 +970,9 @@ class AutoIncrementResetTest(TransactionTestCase): class EmptyDefaultDatabaseTest(unittest.TestCase): def test_empty_default_database(self): """ - An empty default database in settings does not raise an ImproperlyConfigured - error when running a unit test that does not use a database. + An empty default database in settings does not raise an + ImproperlyConfigured error when running a unit test that does not use a + database. """ tested_connections = db.ConnectionHandler({"default": {}}) with mock.patch("django.db.connections", new=tested_connections): |
