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/fixtures_regress | |
| 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/fixtures_regress')
| -rw-r--r-- | tests/fixtures_regress/tests.py | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index 96d33e2df7..999555effe 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -307,8 +307,9 @@ class TestFixtures(TestCase): def test_empty(self): """ - Test for ticket #18213 -- Loading a fixture file with no data output a warning. - Previously empty fixture raises an error exception, see ticket #4371. + Test for ticket #18213 -- Loading a fixture file with no data output a + warning. Previously empty fixture raises an error exception, see ticket + #4371. """ msg = "No fixture data found for 'empty'. (File format may be invalid.)" with self.assertWarnsMessage(RuntimeWarning, msg): @@ -598,7 +599,8 @@ class TestFixtures(TestCase): def test_fixture_dirs_with_default_fixture_path(self): """ settings.FIXTURE_DIRS cannot contain a default fixtures directory - for application (app/fixtures) in order to avoid repeated fixture loading. + for application (app/fixtures) in order to avoid repeated fixture + loading. """ msg = ( "'%s' is a default fixture directory for the '%s' app " @@ -612,7 +614,8 @@ class TestFixtures(TestCase): def test_fixture_dirs_with_default_fixture_path_as_pathlib(self): """ settings.FIXTURE_DIRS cannot contain a default fixtures directory - for application (app/fixtures) in order to avoid repeated fixture loading. + for application (app/fixtures) in order to avoid repeated fixture + loading. """ msg = ( "'%s' is a default fixture directory for the '%s' app " @@ -686,7 +689,8 @@ class NaturalKeyFixtureTests(TestCase): def test_nk_on_serialize(self): """ - Natural key requirements are taken into account when serializing models. + Natural key requirements are taken into account when serializing + models. """ management.call_command( "loaddata", @@ -869,7 +873,8 @@ class M2MNaturalKeyFixtureTests(TestCase): def test_dependency_sorting_m2m_simple(self): """ - M2M relations without explicit through models SHOULD count as dependencies + M2M relations without explicit through models SHOULD count as + dependencies Regression test for bugs that could be caused by flawed fixes to #14226, namely if M2M checks are removed from sort_dependencies @@ -908,7 +913,8 @@ class M2MNaturalKeyFixtureTests(TestCase): def test_dependency_sorting_m2m_complex_circular_1(self): """ - Circular M2M relations with explicit through models should be serializable + Circular M2M relations with explicit through models should be + serializable """ A, B, C, AtoB, BtoC, CtoA = ( M2MComplexCircular1A, @@ -929,8 +935,9 @@ class M2MNaturalKeyFixtureTests(TestCase): def test_dependency_sorting_m2m_complex_circular_2(self): """ - Circular M2M relations with explicit through models should be serializable - This test tests the circularity with explicit natural_key.dependencies + Circular M2M relations with explicit through models should be + serializable This test tests the circularity with explicit + natural_key.dependencies """ sorted_deps = serializers.sort_dependencies( [ @@ -945,7 +952,8 @@ class M2MNaturalKeyFixtureTests(TestCase): def test_dump_and_load_m2m_simple(self): """ - Test serializing and deserializing back models with simple M2M relations + Test serializing and deserializing back models with simple M2M + relations """ a = M2MSimpleA.objects.create(data="a") b1 = M2MSimpleB.objects.create(data="b1") |
