diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-08-28 08:44:26 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-08-28 08:46:54 +0200 |
| commit | 9ac713645bb870c45d7aaf16b003e392f62d4ea3 (patch) | |
| tree | 446fb9c27db23eb141a65acb59b93eede185259a /tests | |
| parent | 4883516bea2aebff38b193f4c9707928040d0f8a (diff) | |
[1.7.x] Fixed #23374 -- Renamed StaticLiveServerCase to StaticLiveServerTestCase
Refs #20739. Thanks Raphaƫl Hertzog for the report and the initial
patch.
Backport of 3a44e2000 from master.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/staticfiles_tests/test_liveserver.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/staticfiles_tests/test_liveserver.py b/tests/staticfiles_tests/test_liveserver.py index b7e309e1a7..dee5091f2f 100644 --- a/tests/staticfiles_tests/test_liveserver.py +++ b/tests/staticfiles_tests/test_liveserver.py @@ -1,6 +1,6 @@ """ A subset of the tests in tests/servers/tests exercicing -django.contrib.staticfiles.testing.StaticLiveServerCase instead of +django.contrib.staticfiles.testing.StaticLiveServerTestCase instead of django.test.LiveServerTestCase. """ @@ -11,7 +11,7 @@ from django.test import override_settings from django.utils.six.moves.urllib.request import urlopen from django.utils._os import upath -from django.contrib.staticfiles.testing import StaticLiveServerCase +from django.contrib.staticfiles.testing import StaticLiveServerTestCase TEST_ROOT = os.path.dirname(upath(__file__)) @@ -23,7 +23,7 @@ TEST_SETTINGS = { } -class LiveServerBase(StaticLiveServerCase): +class LiveServerBase(StaticLiveServerTestCase): available_apps = [] @@ -94,8 +94,8 @@ class StaticLiveServerView(LiveServerBase): def test_collectstatic_emulation(self): """ - Test that StaticLiveServerCase use of staticfiles' serve() allows it to - discover app's static assets without having to collectstatic first. + Test that StaticLiveServerTestCase use of staticfiles' serve() allows it + to discover app's static assets without having to collectstatic first. """ f = self.urlopen('/static/test/file.txt') self.assertEqual(f.read().rstrip(b'\r\n'), b'In app media directory.') |
