mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Cleaned class inheritances in staticfiles tests
Thanks Tim Graham for precious inputs.
This commit is contained in:
parent
1c8c0837c6
commit
859fc64338
6 changed files with 33 additions and 50 deletions
|
@ -11,7 +11,7 @@ from .cases import StaticFilesTestCase
|
|||
from .settings import TEST_ROOT
|
||||
|
||||
|
||||
class FinderTestCase(object):
|
||||
class TestFinders(object):
|
||||
"""
|
||||
Base finder test mixin.
|
||||
|
||||
|
@ -32,7 +32,7 @@ class FinderTestCase(object):
|
|||
self.assertEqual(found, dst)
|
||||
|
||||
|
||||
class TestFileSystemFinder(StaticFilesTestCase, FinderTestCase):
|
||||
class TestFileSystemFinder(TestFinders, StaticFilesTestCase):
|
||||
"""
|
||||
Test FileSystemFinder.
|
||||
"""
|
||||
|
@ -44,7 +44,7 @@ class TestFileSystemFinder(StaticFilesTestCase, FinderTestCase):
|
|||
self.find_all = (os.path.join('test', 'file.txt'), [test_file_path])
|
||||
|
||||
|
||||
class TestAppDirectoriesFinder(StaticFilesTestCase, FinderTestCase):
|
||||
class TestAppDirectoriesFinder(TestFinders, StaticFilesTestCase):
|
||||
"""
|
||||
Test AppDirectoriesFinder.
|
||||
"""
|
||||
|
@ -56,7 +56,7 @@ class TestAppDirectoriesFinder(StaticFilesTestCase, FinderTestCase):
|
|||
self.find_all = (os.path.join('test', 'file1.txt'), [test_file_path])
|
||||
|
||||
|
||||
class TestDefaultStorageFinder(StaticFilesTestCase, FinderTestCase):
|
||||
class TestDefaultStorageFinder(TestFinders, StaticFilesTestCase):
|
||||
"""
|
||||
Test DefaultStorageFinder.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue