Moved tests to nose compatible names to easy the discovery.
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
from compressor.tests.base import (CompressorTestCase, CssMediaTestCase,
|
|
||||||
VerboseTestCase, CacheBackendTestCase)
|
|
||||||
from compressor.tests.filters import (CssTidyTestCase, PrecompilerTestCase,
|
|
||||||
CssMinTestCase, CssAbsolutizingTestCase, CssAbsolutizingTestCaseWithHash,
|
|
||||||
CssDataUriTestCase, TemplateTestCase)
|
|
||||||
from compressor.tests.jinja2ext import TestJinja2CompressorExtension
|
|
||||||
from compressor.tests.offline import (
|
|
||||||
OfflineGenerationBlockSuperTestCase,
|
|
||||||
OfflineGenerationBlockSuperTestCaseWithExtraContent,
|
|
||||||
OfflineGenerationBlockSuperMultipleTestCase,
|
|
||||||
OfflineGenerationConditionTestCase,
|
|
||||||
OfflineGenerationTemplateTagTestCase,
|
|
||||||
OfflineGenerationStaticTemplateTagTestCase,
|
|
||||||
OfflineGenerationTestCaseWithContext,
|
|
||||||
OfflineGenerationTestCaseErrors,
|
|
||||||
OfflineGenerationTestCase,
|
|
||||||
OfflineGenerationTestCaseWithError)
|
|
||||||
from compressor.tests.parsers import (LxmlParserTests, Html5LibParserTests,
|
|
||||||
BeautifulSoupParserTests, HtmlParserTests)
|
|
||||||
from compressor.tests.signals import PostCompressSignalTestCase
|
|
||||||
from compressor.tests.storages import StorageTestCase
|
|
||||||
from compressor.tests.templatetags import (TemplatetagTestCase,
|
|
||||||
PrecompilerTemplatetagTestCase)
|
|
||||||
|
@@ -13,7 +13,7 @@ from compressor.filters.base import CompilerFilter
|
|||||||
from compressor.filters.cssmin import CSSMinFilter
|
from compressor.filters.cssmin import CSSMinFilter
|
||||||
from compressor.filters.css_default import CssAbsoluteFilter
|
from compressor.filters.css_default import CssAbsoluteFilter
|
||||||
from compressor.filters.template import TemplateFilter
|
from compressor.filters.template import TemplateFilter
|
||||||
from compressor.tests.base import test_dir
|
from compressor.tests.test_base import test_dir
|
||||||
|
|
||||||
|
|
||||||
class CssTidyTestCase(TestCase):
|
class CssTidyTestCase(TestCase):
|
@@ -5,7 +5,7 @@ from django.test import TestCase
|
|||||||
import jinja2
|
import jinja2
|
||||||
|
|
||||||
from compressor.conf import settings
|
from compressor.conf import settings
|
||||||
from compressor.tests.base import css_tag
|
from compressor.tests.test_base import css_tag
|
||||||
|
|
||||||
|
|
||||||
class TestJinja2CompressorExtension(TestCase):
|
class TestJinja2CompressorExtension(TestCase):
|
@@ -5,7 +5,7 @@ from unittest2 import skipIf
|
|||||||
try:
|
try:
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO # noqa
|
||||||
|
|
||||||
import django
|
import django
|
||||||
from django.template import Template, Context
|
from django.template import Template, Context
|
@@ -21,7 +21,7 @@ except ImportError:
|
|||||||
from compressor.base import SOURCE_HUNK, SOURCE_FILE
|
from compressor.base import SOURCE_HUNK, SOURCE_FILE
|
||||||
from compressor.conf import settings
|
from compressor.conf import settings
|
||||||
from compressor.css import CssCompressor
|
from compressor.css import CssCompressor
|
||||||
from compressor.tests.base import CompressorTestCase
|
from compressor.tests.test_base import CompressorTestCase
|
||||||
|
|
||||||
|
|
||||||
class ParserTestCase(object):
|
class ParserTestCase(object):
|
@@ -8,8 +8,8 @@ from django.test import TestCase
|
|||||||
|
|
||||||
from compressor import base
|
from compressor import base
|
||||||
from compressor.conf import settings
|
from compressor.conf import settings
|
||||||
from compressor.tests.base import css_tag
|
from compressor.tests.test_base import css_tag
|
||||||
from compressor.tests.templatetags import render
|
from compressor.tests.test_templatetags import render
|
||||||
|
|
||||||
|
|
||||||
class StorageTestCase(TestCase):
|
class StorageTestCase(TestCase):
|
@@ -10,7 +10,7 @@ from django.test import TestCase
|
|||||||
|
|
||||||
from compressor.conf import settings
|
from compressor.conf import settings
|
||||||
from compressor.signals import post_compress
|
from compressor.signals import post_compress
|
||||||
from compressor.tests.base import css_tag, test_dir
|
from compressor.tests.test_base import css_tag, test_dir
|
||||||
|
|
||||||
|
|
||||||
def render(template_string, context_dict=None):
|
def render(template_string, context_dict=None):
|
Reference in New Issue
Block a user