#23361 closed Uncategorized (worksforme)

django.test.Client and response data

Reported by: liminspace Owned by: nobody
Component: Testing framework Version: 1.7-rc-2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If make request with django.test.Client and response is HttpResponse (not TemplateResponse) then it not has context data and templates list.
It is a bug?

Change History (2)

comment:1 Changed 14 months ago by liminspace

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

It work in TestCase and does not work in django shell.

comment:2 Changed 14 months ago by timgraham

  • Resolution set to worksforme
  • Status changed from new to closed

I'd guess you haven't called setup_test_environment(). Please reopen if that's not the case.

Note: See TracTickets for help on using tickets.
Back to Top