Ticket #23374: 0001-Rename-StaticLiveServerCase-into-more-natural-Static.patch

File 0001-Rename-StaticLiveServerCase-into-more-natural-Static.patch, 1.9 KB (added by Raphaël Hertzog, 10 years ago)
  • django/contrib/staticfiles/testing.py

    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  
    33from django.contrib.staticfiles.handlers import StaticFilesHandler
    44
    55
    6 class StaticLiveServerCase(LiveServerTestCase):
     6class StaticLiveServerTestCase(LiveServerTestCase):
    77    """
    88    Extends django.test.LiveServerTestCase to transparently overlay at test
    99    execution-time the assets provided by the staticfiles app finders. This
  • docs/ref/contrib/staticfiles.txt

    diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
    index 245de1c..d527741 100644
    a b files in app directories.  
    488488Specialized test case to support 'live testing'
    489489-----------------------------------------------
    490490
    491 .. class:: testing.StaticLiveServerCase
     491.. class:: testing.StaticLiveServerTestCase
    492492
    493493This unittest TestCase subclass extends :class:`django.test.LiveServerTestCase`.
    494494
    transparently overlay at test execution-time the assets provided by the  
    505505
    506506.. versionadded:: 1.7
    507507
    508     ``StaticLiveServerCase`` is new in Django 1.7. Previously its functionality
     508    ``StaticLiveServerTestCase`` is new in Django 1.7. Previously its functionality
    509509    was provided by :class:`django.test.LiveServerTestCase`.
Back to Top