Cleaned class inheritances in staticfiles tests

Thanks Tim Graham for precious inputs.
This commit is contained in:
Claude Paroz 2016-03-26 16:17:06 +01:00
parent 1c8c0837c6
commit 859fc64338
6 changed files with 33 additions and 50 deletions

View file

@ -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.
"""