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 | |
| 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')
| -rw-r--r-- | tests/fixtures/tests.py | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index bce55bc355..48e3182b59 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -239,7 +239,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): '"pub_date": "2006-06-16T13:00:00"}}]', ) - # Specify one model from one application, and an entire other application. + # Specify one model from one application, and an entire other + # application. self._dumpdata_assert( ["fixtures.Category", "sites"], '[{"pk": 1, "model": "fixtures.category", "fields": ' @@ -272,7 +273,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): ], ) - # Load fixture 6, JSON file with dynamic ContentType fields. Testing ManyToOne. + # Load fixture 6, JSON file with dynamic ContentType fields. Testing + # ManyToOne. management.call_command("loaddata", "fixture6.json", verbosity=0) self.assertQuerySetEqual( Tag.objects.all(), @@ -284,7 +286,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): ordered=False, ) - # Load fixture 7, XML file with dynamic ContentType fields. Testing ManyToOne. + # Load fixture 7, XML file with dynamic ContentType fields. Testing + # ManyToOne. management.call_command("loaddata", "fixture7.xml", verbosity=0) self.assertQuerySetEqual( Tag.objects.all(), @@ -298,7 +301,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): ordered=False, ) - # Load fixture 8, JSON file with dynamic Permission fields. Testing ManyToMany. + # Load fixture 8, JSON file with dynamic Permission fields. Testing + # ManyToMany. management.call_command("loaddata", "fixture8.json", verbosity=0) self.assertQuerySetEqual( Visa.objects.all(), @@ -312,7 +316,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): ordered=False, ) - # Load fixture 9, XML file with dynamic Permission fields. Testing ManyToMany. + # Load fixture 9, XML file with dynamic Permission fields. Testing + # ManyToMany. management.call_command("loaddata", "fixture9.xml", verbosity=0) self.assertQuerySetEqual( Visa.objects.all(), @@ -344,7 +349,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): '{"name": "Music for all ages", "authors": [3, 1]}}]', ) - # But you can get natural keys if you ask for them and they are available + # But you can get natural keys if you ask for them and they are + # available self._dumpdata_assert( ["fixtures.book"], '[{"pk": 1, "model": "fixtures.book", "fields": ' @@ -548,7 +554,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): exclude_list=["fixtures.Article", "fixtures.Book"], ) - # Excluding sites and fixtures.Article/Book should only leave fixtures.Category + # Excluding sites and fixtures.Article/Book should only leave + # fixtures.Category self._dumpdata_assert( ["sites", "fixtures"], '[{"pk": 1, "model": "fixtures.category", "fields": ' @@ -852,7 +859,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): self.assertEqual(Article.objects.get().headline, "Django pets kitten") def test_compressed_specified_loading(self): - # Load fixture 5 (compressed), using format *and* compression specification + # Load fixture 5 (compressed), using format *and* compression + # specification management.call_command("loaddata", "fixture5.json.zip", verbosity=0) self.assertEqual( Article.objects.get().headline, |
