From 3b00a88142704706d4d15a25e929d61683e719f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>
Date: Wed, 27 Aug 2014 23:01:22 +0200
Subject: [PATCH] Rename StaticLiveServerCase into more natural
StaticLiveServerTestCase
The class is a unittest.TestCase and a django.LiveServerTestCase.
Its name should reflect that.
---
django/contrib/staticfiles/testing.py | 2 +-
docs/ref/contrib/staticfiles.txt | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/django/contrib/staticfiles/testing.py b/django/contrib/staticfiles/testing.py
index 8683239..7b30499 100644
a
|
b
|
from django.test import LiveServerTestCase
|
3 | 3 | from django.contrib.staticfiles.handlers import StaticFilesHandler |
4 | 4 | |
5 | 5 | |
6 | | class StaticLiveServerCase(LiveServerTestCase): |
| 6 | class StaticLiveServerTestCase(LiveServerTestCase): |
7 | 7 | """ |
8 | 8 | Extends django.test.LiveServerTestCase to transparently overlay at test |
9 | 9 | execution-time the assets provided by the staticfiles app finders. This |
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 245de1c..d527741 100644
a
|
b
|
files in app directories.
|
488 | 488 | Specialized test case to support 'live testing' |
489 | 489 | ----------------------------------------------- |
490 | 490 | |
491 | | .. class:: testing.StaticLiveServerCase |
| 491 | .. class:: testing.StaticLiveServerTestCase |
492 | 492 | |
493 | 493 | This unittest TestCase subclass extends :class:`django.test.LiveServerTestCase`. |
494 | 494 | |
… |
… |
transparently overlay at test execution-time the assets provided by the
|
505 | 505 | |
506 | 506 | .. versionadded:: 1.7 |
507 | 507 | |
508 | | ``StaticLiveServerCase`` is new in Django 1.7. Previously its functionality |
| 508 | ``StaticLiveServerTestCase`` is new in Django 1.7. Previously its functionality |
509 | 509 | was provided by :class:`django.test.LiveServerTestCase`. |