From 77030ccc1ea4e1df04540e4d4594cb0d741fa2b4 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Tue, 1 Feb 2011 20:39:40 +0000 Subject: [PATCH] Fixed a few test docstrings and removed an unused import in staticfiles. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15390 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/staticfiles/handlers.py | 1 - tests/regressiontests/staticfiles_tests/tests.py | 4 ++-- tests/regressiontests/staticfiles_tests/urls/default.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/django/contrib/staticfiles/handlers.py b/django/contrib/staticfiles/handlers.py index 669ffaeabc1..b51b7c8fd5e 100644 --- a/django/contrib/staticfiles/handlers.py +++ b/django/contrib/staticfiles/handlers.py @@ -2,7 +2,6 @@ import urllib from urlparse import urlparse from django.conf import settings -from django.core.exceptions import ImproperlyConfigured from django.core.handlers.wsgi import WSGIHandler from django.contrib.staticfiles import utils diff --git a/tests/regressiontests/staticfiles_tests/tests.py b/tests/regressiontests/staticfiles_tests/tests.py index 1fb043c715f..d524254f3c1 100644 --- a/tests/regressiontests/staticfiles_tests/tests.py +++ b/tests/regressiontests/staticfiles_tests/tests.py @@ -286,7 +286,7 @@ class TestServeStatic(StaticFilesTestCase): class TestServeDisabled(TestServeStatic): """ - Test serving media from django.contrib.admin. + Test serving static files disabled when DEBUG is False. """ def setUp(self): super(TestServeDisabled, self).setUp() @@ -300,7 +300,7 @@ class TestServeDisabled(TestServeStatic): class TestServeStaticWithDefaultURL(TestServeStatic, TestDefaults): """ - Test static asset serving view with staticfiles_urlpatterns helper. + Test static asset serving view with manually configured URLconf. """ pass diff --git a/tests/regressiontests/staticfiles_tests/urls/default.py b/tests/regressiontests/staticfiles_tests/urls/default.py index 061ec6465e0..57882681759 100644 --- a/tests/regressiontests/staticfiles_tests/urls/default.py +++ b/tests/regressiontests/staticfiles_tests/urls/default.py @@ -1,5 +1,4 @@ -from django.conf import settings -from django.conf.urls.defaults import * +from django.conf.urls.defaults import patterns, url urlpatterns = patterns('', url(r'^static/(?P.*)$', 'django.contrib.staticfiles.views.serve'),