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/staticfiles_tests | |
| 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/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/test_management.py | 10 | ||||
| -rw-r--r-- | tests/staticfiles_tests/test_storage.py | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index a3226f5aa1..e8873915e6 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -439,8 +439,8 @@ class TestCollectionDryRunManifestStaticFilesStorage(TestCollectionDryRun): class TestCollectionFilesOverride(CollectionTestCase): """ Test overriding duplicated files by ``collectstatic`` management command. - Check for proper handling of apps order in installed apps even if file modification - dates are in different order: + Check for proper handling of apps order in installed apps even if file + modification dates are in different order: 'staticfiles_test_app', 'staticfiles_tests.apps.no_label', """ @@ -457,9 +457,9 @@ class TestCollectionFilesOverride(CollectionTestCase): self.orig_atime = os.path.getatime(self.orig_path) # prepare duplicate of file2.txt from a temporary app - # this file will have modification time older than no_label/static/file2.txt - # anyway it should be taken to STATIC_ROOT because the temporary app is before - # 'no_label' app in installed apps + # this file will have modification time older than + # no_label/static/file2.txt anyway it should be taken to STATIC_ROOT + # because the temporary app is before 'no_label' app in installed apps self.temp_app_path = os.path.join(self.temp_dir, "staticfiles_test_app") self.testfile_path = os.path.join(self.temp_app_path, "static", "file2.txt") diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index 9ef49491ff..e09f9eda1c 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -131,7 +131,8 @@ class TestHashedFiles: def test_template_tag_absolute_root(self): """ - Like test_template_tag_absolute, but for a file in STATIC_ROOT (#26249). + Like test_template_tag_absolute, but for a file in STATIC_ROOT + (#26249). """ relpath = self.hashed_file_path("absolute_root.css") self.assertEqual(relpath, "absolute_root.f821df1b64f7.css") @@ -198,8 +199,8 @@ class TestHashedFiles: Files that are alterable should always be post-processed; files that aren't should be skipped. - collectstatic has already been called once in setUp() for this testcase, - therefore we check by verifying behavior on a second run. + collectstatic has already been called once in setUp() for this + testcase, therefore we check by verifying behavior on a second run. """ collectstatic_args = { "interactive": False, |
