mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32470 -- Fixed ResolverMatch instance on test clients when request.urlconf is set.
This commit is contained in:
committed by
Mariusz Felisiak
parent
fb93363c49
commit
d6572ee4b0
11
tests/test_client/urls_middleware_urlconf.py
Normal file
11
tests/test_client/urls_middleware_urlconf.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.http import HttpResponse
|
||||
from django.urls import path
|
||||
|
||||
|
||||
def empty_response(request):
|
||||
return HttpResponse()
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('middleware_urlconf_view/', empty_response, name='middleware_urlconf_view'),
|
||||
]
|
||||
Reference in New Issue
Block a user