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/backends | |
| 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/backends')
| -rw-r--r-- | tests/backends/base/test_schema.py | 4 | ||||
| -rw-r--r-- | tests/backends/postgresql/tests.py | 3 | ||||
| -rw-r--r-- | tests/backends/tests.py | 12 |
3 files changed, 13 insertions, 6 deletions
diff --git a/tests/backends/base/test_schema.py b/tests/backends/base/test_schema.py index 5409789b13..06a9a0e28a 100644 --- a/tests/backends/base/test_schema.py +++ b/tests/backends/base/test_schema.py @@ -5,7 +5,9 @@ from django.test import SimpleTestCase class SchemaEditorTests(SimpleTestCase): def test_effective_default_callable(self): - """SchemaEditor.effective_default() shouldn't call callable defaults.""" + """ + SchemaEditor.effective_default() shouldn't call callable defaults. + """ class MyStr(str): def __call__(self): diff --git a/tests/backends/postgresql/tests.py b/tests/backends/postgresql/tests.py index 37c5ee562b..c5fa17041c 100644 --- a/tests/backends/postgresql/tests.py +++ b/tests/backends/postgresql/tests.py @@ -373,7 +373,8 @@ class Tests(TestCase): try: # Start a transaction so the isolation level isn't reported as 0. new_connection.set_autocommit(False) - # Check the level on the psycopg connection, not the Django wrapper. + # Check the level on the psycopg connection, not the Django + # wrapper. self.assertEqual( new_connection.connection.isolation_level, IsolationLevel.SERIALIZABLE, diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 172d6b630b..3e708401c5 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -57,8 +57,8 @@ class DateQuotingTest(TestCase): def test_django_date_extract(self): """ - Test the custom ``django_date_extract method``, in particular against fields - which clash with strings passed to it (e.g. 'day') (#12818). + Test the custom ``django_date_extract method``, in particular against + fields which clash with strings passed to it (e.g. 'day') (#12818). """ updated = datetime.datetime(2010, 2, 20) SchoolClass.objects.create(year=2009, last_updated=updated) @@ -234,7 +234,10 @@ class LongNameTest(TransactionTestCase): @skipUnlessDBFeature("supports_sequence_reset") class SequenceResetTest(TestCase): def test_generic_relation(self): - "Sequence names are correct when resetting generic relations (Ref #13941)" + """ + Sequence names are correct when resetting generic relations (Ref + #13941) + """ # Create an object with a manually specified PK Post.objects.create(id=10, name="1st post", text="hello world") @@ -737,7 +740,8 @@ class FkConstraintsTests(TransactionTestCase): def test_check_constraints(self): """ - Constraint checks should raise an IntegrityError when bad data is in the DB. + Constraint checks should raise an IntegrityError when bad data is in + the DB. """ with transaction.atomic(): # Create an Article. |
