Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified template_tests for unittest2 discovery.

  • Loading branch information...
commit 3810dc3070468abd3a3d9beec406a5aa3edd6b52 1 parent 44293c5
@prestontimmons prestontimmons authored carljm committed
View
0  tests/template_tests/callables.py → tests/template_tests/test_callables.py
File renamed without changes
View
0  tests/template_tests/context.py → tests/template_tests/test_context.py
File renamed without changes
View
0  tests/template_tests/custom.py → tests/template_tests/test_custom.py
File renamed without changes
View
0  tests/template_tests/loaders.py → tests/template_tests/test_loaders.py
File renamed without changes
View
0  tests/template_tests/nodelist.py → tests/template_tests/test_nodelist.py
File renamed without changes
View
0  tests/template_tests/parser.py → tests/template_tests/test_parser.py
File renamed without changes
View
4 tests/template_tests/response.py → tests/template_tests/test_response.py
@@ -15,7 +15,7 @@
def test_processor(request):
return {'processors': 'yes'}
-test_processor_name = 'template_tests.response.test_processor'
+test_processor_name = 'template_tests.test_response.test_processor'
# A test middleware that installs a temporary URLConf
@@ -303,7 +303,7 @@ class CustomURLConfTest(TestCase):
def setUp(self):
self.old_MIDDLEWARE_CLASSES = settings.MIDDLEWARE_CLASSES
settings.MIDDLEWARE_CLASSES = list(settings.MIDDLEWARE_CLASSES) + [
- 'template_tests.response.CustomURLConfMiddleware'
+ 'template_tests.test_response.CustomURLConfMiddleware'
]
def tearDown(self):
View
0  tests/template_tests/smartif.py → tests/template_tests/test_smartif.py
File renamed without changes
View
0  tests/template_tests/unicode.py → tests/template_tests/test_unicode.py
File renamed without changes
View
18 tests/template_tests/tests.py
@@ -36,18 +36,18 @@
from django.utils import six
from django.utils.tzinfo import LocalTimezone
-from .callables import CallableVariablesTests
-from .context import ContextTests
-from .custom import CustomTagTests, CustomFilterTests
-from .parser import ParserTests
-from .unicode import UnicodeTests
-from .nodelist import NodelistTest, ErrorIndexTest
-from .smartif import SmartIfTests
-from .response import (TemplateResponseTest, CacheMiddlewareTest,
+from .test_callables import CallableVariablesTests
+from .test_context import ContextTests
+from .test_custom import CustomTagTests, CustomFilterTests
+from .test_parser import ParserTests
+from .test_unicode import UnicodeTests
+from .test_nodelist import NodelistTest, ErrorIndexTest
+from .test_smartif import SmartIfTests
+from .test_response import (TemplateResponseTest, CacheMiddlewareTest,
SimpleTemplateResponseTest, CustomURLConfTest)
try:
- from .loaders import RenderToStringTest, EggLoaderTest
+ from .test_loaders import RenderToStringTest, EggLoaderTest
except ImportError as e:
if "pkg_resources" in e.args[0]:
pass # If setuptools isn't installed, that's fine. Just move on.
Please sign in to comment.
Something went wrong with that request. Please try again.