summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/test_liveserver.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-21 18:27:46 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-21 21:01:37 +0200
commitc6a711d9e50835eca0f3fcf79089ef75251ec931 (patch)
tree9b4a2e3513881e855fab9f8b96a68d076bbdec22 /tests/staticfiles_tests/test_liveserver.py
parentbc19ff6479261d80f3b1751700b7b9d4d7428211 (diff)
Removed some apps from ALWAYS_INSTALLED_APPS
Diffstat (limited to 'tests/staticfiles_tests/test_liveserver.py')
-rw-r--r--tests/staticfiles_tests/test_liveserver.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/staticfiles_tests/test_liveserver.py b/tests/staticfiles_tests/test_liveserver.py
index b7e309e1a7..e135ecfcf8 100644
--- a/tests/staticfiles_tests/test_liveserver.py
+++ b/tests/staticfiles_tests/test_liveserver.py
@@ -7,7 +7,7 @@ django.test.LiveServerTestCase.
import os
from django.core.exceptions import ImproperlyConfigured
-from django.test import override_settings
+from django.test import modify_settings, override_settings
from django.utils.six.moves.urllib.request import urlopen
from django.utils._os import upath
@@ -86,12 +86,11 @@ class StaticLiveServerChecks(LiveServerBase):
class StaticLiveServerView(LiveServerBase):
- # The test is going to access a static file stored in this application.
- available_apps = ['staticfiles_tests.apps.test']
-
def urlopen(self, url):
return urlopen(self.live_server_url + url)
+ # The test is going to access a static file stored in this application.
+ @modify_settings(INSTALLED_APPS={'append': 'staticfiles_tests.apps.test'})
def test_collectstatic_emulation(self):
"""
Test that StaticLiveServerCase use of staticfiles' serve() allows it to