mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed #27012 -- Removed unnecessary setup_test_environment() in a test.
This commit is contained in:
parent
5c63b3e5a7
commit
7bc5274f6f
@ -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'})
|
||||
|
Loading…
Reference in New Issue
Block a user