diff options
Diffstat (limited to 'tests/staticfiles_tests/test_liveserver.py')
| -rw-r--r-- | tests/staticfiles_tests/test_liveserver.py | 7 |
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 |
