#21476: Cache tests make an incorrect use of `HttpRequest` -------------------------------------+----------------------------------- Reporter: unaizalakain | Owner: nobody Type: Bug | Status: new Component: Core (Cache system) | Version: master Severity: Normal | Keywords: tests, cache, request Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+----------------------------------- Cache tests directly append the query string to the request path:
{{{ request = HttpRequest() request.META = { 'SERVER_NAME': 'testserver', 'SERVER_PORT': 80, } request.method = method request.path = request.path_info = "/cache/%s" % path return request }}} `HttpRequest.get_full_path()` uses the `HttpRequest.META['QUERY_STRING']` attribute to determine, escape and encode the query string. -- Ticket URL: <https://code.djangoproject.com/ticket/21476> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/055.6dd401952584b78610518a9076c16187%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.