mirror of
https://github.com/django/django.git
synced 2025-08-15 06:19:23 +00: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.template.loader import render_to_string
|
||||||
from django.test import Client
|
from django.test import Client
|
||||||
from django.test.client import CONTENT_TYPE_RE
|
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
|
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.
|
A view that uses test client to call another view.
|
||||||
"""
|
"""
|
||||||
setup_test_environment()
|
|
||||||
c = Client()
|
c = Client()
|
||||||
c.get("/no_template_view/")
|
c.get("/no_template_view/")
|
||||||
return render(request, 'base.html', {'nested': 'yes'})
|
return render(request, 'base.html', {'nested': 'yes'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user