Ticket #6802: forms_media_test.patch

File forms_media_test.patch, 767 bytes (added by Ales Zoulek, 17 years ago)
  • tests/regressiontests/forms/media.py

    diff --git a/tests/regressiontests/forms/media.py b/tests/regressiontests/forms/media.py
    index 4c87f61..265be07 100644
    a b  
    44media_tests = r"""
    55>>> from django.newforms import TextInput, Media, TextInput, CharField, Form, MultiWidget
    66>>> from django.conf import settings
     7>>> MEDIA_URL_BACKUP = settings.MEDIA_URL
    78>>> settings.MEDIA_URL = 'http://media.example.com/media/'
    89
    910# Check construction of media objects
    media_tests = r"""  
    354355<script type="text/javascript" src="/path/to/js4"></script>
    355356<script type="text/javascript" src="/some/form/javascript"></script>
    356357
    357 """
    358  No newline at end of file
     358>>> settings.MEDIA_URL = MEDIA_URL_BACKUP
     359"""
Back to Top