Opened 3 years ago

Closed 3 years ago

#18690 closed Bug (invalid)

Typo in Testing documentation response.context

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: typo, testing
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



response.context should be response.context_data to access attributes in this way

Change History (1)

comment:1 Changed 3 years ago by ptone

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The response returned by a test client is not the same class of object as a TemplateResponse object, which does have the context_data attribute. I'm assuming you have these confused - as the test client is documented properly.

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