summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-22 14:46:42 -0400
committerTim Graham <timograham@gmail.com>2015-10-22 14:47:15 -0400
commitca46dc323b67ac90d0e8c8290b2bcb6d100c5118 (patch)
tree161b8579c74d99e328d6a648794477b2c9f6944f /tests
parente241444ef50add7ef6f9c176f84a9bd85060fc18 (diff)
[1.9.x] Fixed "URLconf" spelling in code comments.
Backport of 37ea3cb03e80de80380009a7a7939bc48d75abe9 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/patterns/tests.py2
-rw-r--r--tests/middleware/tests.py2
-rw-r--r--tests/urlpatterns_reverse/tests.py6
-rw-r--r--tests/urls.py2
-rw-r--r--tests/view_tests/tests/test_debug.py4
5 files changed, 8 insertions, 8 deletions
diff --git a/tests/i18n/patterns/tests.py b/tests/i18n/patterns/tests.py
index a5a012be27..1e8bb9d929 100644
--- a/tests/i18n/patterns/tests.py
+++ b/tests/i18n/patterns/tests.py
@@ -94,7 +94,7 @@ class URLDisabledTests(URLTestCaseBase):
@override_settings(ROOT_URLCONF='i18n.patterns.urls.path_unused')
class PathUnusedTests(URLTestCaseBase):
"""
- Check that if no i18n_patterns is used in root urlconfs, then no
+ Check that if no i18n_patterns is used in root URLconfs, then no
language activation happens based on url prefix.
"""
diff --git a/tests/middleware/tests.py b/tests/middleware/tests.py
index 6e1bbaf772..328073b8ac 100644
--- a/tests/middleware/tests.py
+++ b/tests/middleware/tests.py
@@ -151,7 +151,7 @@ class CommonMiddlewareTest(SimpleTestCase):
self.assertEqual(r.url,
'http://www.testserver/slash/')
- # The following tests examine expected behavior given a custom urlconf that
+ # The following tests examine expected behavior given a custom URLconf that
# overrides the default one through the request object.
@override_settings(APPEND_SLASH=True)
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py
index 292b981907..5f06cc7fed 100644
--- a/tests/urlpatterns_reverse/tests.py
+++ b/tests/urlpatterns_reverse/tests.py
@@ -282,7 +282,7 @@ class NoURLPatternsTests(SimpleTestCase):
self.assertRaisesMessage(
ImproperlyConfigured,
- "The included urlconf 'urlpatterns_reverse.no_urls' does not "
+ "The included URLconf 'urlpatterns_reverse.no_urls' does not "
"appear to have any patterns in it. If you see valid patterns in "
"the file then the issue is probably caused by a circular import.",
getattr, resolver, 'url_patterns'
@@ -374,7 +374,7 @@ class ResolverTests(unittest.TestCase):
Test repr of RegexURLResolver, especially when urlconf_name is a list
(#17892).
"""
- # Pick a resolver from a namespaced urlconf
+ # Pick a resolver from a namespaced URLconf
resolver = get_resolver('urlpatterns_reverse.namespace_urls')
sub_resolver = resolver.namespace_dict['test-ns1'][1]
self.assertIn('<RegexURLPattern list>', repr(sub_resolver))
@@ -934,7 +934,7 @@ class DefaultErrorHandlerTests(SimpleTestCase):
@override_settings(ROOT_URLCONF=None)
class NoRootUrlConfTests(SimpleTestCase):
- """Tests for handler404 and handler500 if urlconf is None"""
+ """Tests for handler404 and handler500 if ROOT_URLCONF is None"""
def test_no_handler_exception(self):
self.assertRaises(ImproperlyConfigured, self.client.get, '/test/me/')
diff --git a/tests/urls.py b/tests/urls.py
index bf9e5dc0fb..7d3a3a790a 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,4 +1,4 @@
-"""This urlconf exists because Django expects ROOT_URLCONF to exist. URLs
+"""This URLconf exists because Django expects ROOT_URLCONF to exist. URLs
should be added within the test folders, and use TestCase.urls to set them.
This helps the tests remain isolated.
"""
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py
index b4e7f9c7fa..03554f00eb 100644
--- a/tests/view_tests/tests/test_debug.py
+++ b/tests/view_tests/tests/test_debug.py
@@ -169,9 +169,9 @@ class DebugViewTests(LoggingCaptureMixin, SimpleTestCase):
@override_settings(ROOT_URLCONF='view_tests.default_urls')
def test_default_urlconf_template(self):
"""
- Make sure that the default urlconf template is shown shown instead
+ Make sure that the default URLconf template is shown shown instead
of the technical 404 page, if the user has not altered their
- url conf yet.
+ URLconf yet.
"""
response = self.client.get('/')
self.assertContains(