Opened 9 years ago

Closed 9 years ago

#24982 closed Cleanup/optimization (fixed)

Split staticfiles tests into multiple files

Reported by: Tim Graham Owned by: Moritz Sichert
Component: contrib.staticfiles Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Update an existing pull request per the comments.

Change History (3)

comment:1 by Moritz Sichert, 9 years ago

Owner: changed from nobody to Moritz Sichert
Status: newassigned

comment:2 by Moritz Sichert, 9 years ago

Patch needs improvement: unset

Added PR.
The tests are now structured as follows:

cases.py:

class BaseStaticFilesTestCase
class StaticFilesTestCase
class BaseCollectionTestCase
class CollectionTestCase
class TestDefaults
class TestNoFilesCreated
def hashed_file_path
class TestHashedFiles
class FinderTestCase

settings.py:

TEST_ROOT
TESTFILES_PATH
TEST_SETTINGS

test_finders.py:

class TestFileSystemFinder
class TestAppDirectoriesFinder
class TestDefaultStorageFinder
class TestMiscFinder

test_management.py:

class TestFindStatic
class TestConfiguration
class TestCollection
class TestCollectionClear
class TestCollectionExcludeNoDefaultIgnore
class TestCollectionDryRun
class TestCollectionFilesOverride
class TestCollectionOverwriteWarning
class TestCollectionNonLocalStorage
class TestCollectionLinks

test_storage.py:

class TestCollectionCachedStorage
class TestCollectionManifestStorage
class TestCollectionSimpleCachedStorage
class CustomStaticFilesStorage
class TestStaticFilePermissions

test_templatetags.py:

class TestTemplateTag

test_views.py:

class TestServeStatic
class TestServeDisabled
class TestServeStaticWithDefaultURL
class TestServeStaticWithURLHelper
Version 0, edited 9 years ago by Moritz Sichert (next)

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In b35b43d:

Fixed #24982 -- Split staticfiles tests into multiple files

Note: See TracTickets for help on using tickets.
Back to Top