mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Skip a sendfile test under Django 1.8
As per bbdb4379a0 (commitcomment-11084140)
This commit is contained in:
parent
1248a0bab0
commit
ded91decb6
@ -6,6 +6,7 @@ import mock
|
||||
from bs4 import BeautifulSoup
|
||||
import os.path
|
||||
|
||||
import django
|
||||
from django.test import TestCase
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.auth.models import Group, Permission
|
||||
@ -598,7 +599,7 @@ class TestServeView(TestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response['X-Sendfile'], os.path.join(settings.MEDIA_ROOT, self.document.file.name))
|
||||
|
||||
@unittest.expectedFailure # Adds "http://" to beginning of Location when it shouldn't
|
||||
@unittest.skipIf(django.VERSION >= (1, 8) # Under Django 1.8. It adds "http://" to beginning of Location when it shouldn't
|
||||
@override_settings(SENDFILE_BACKEND='sendfile.backends.mod_wsgi', SENDFILE_ROOT=settings.MEDIA_ROOT, SENDFILE_URL=settings.MEDIA_URL[:-1])
|
||||
def test_sendfile_mod_wsgi_backend(self):
|
||||
self.clear_sendfile_cache()
|
||||
|
Loading…
Reference in New Issue
Block a user