1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #27012 -- Removed unnecessary setup_test_environment() in a test.

This commit is contained in:
Chris Jerdonek 2016-08-04 06:35:44 -07:00 committed by Tim Graham
parent 5c63b3e5a7
commit 7bc5274f6f

View File

@ -8,7 +8,6 @@ from django.shortcuts import render
from django.template.loader import render_to_string
from django.test import Client
from django.test.client import CONTENT_TYPE_RE
from django.test.utils import setup_test_environment
from django.utils.six.moves.urllib.parse import urlencode
@ -63,7 +62,6 @@ def nested_view(request):
"""
A view that uses test client to call another view.
"""
setup_test_environment()
c = Client()
c.get("/no_template_view/")
return render(request, 'base.html', {'nested': 'yes'})