Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#10482 closed (fixed)

Unify access to response.context in test client

Reported by: Julien Phalip Owned by: Julien Phalip
Component: Testing framework Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


James Bennett described the issue quite clearly on this django-developers thread:

To simplify the testing of templates and contexts, it'd be good to have a unified way to access the response.context attribute.

Attachments (1)

10482.consistent_response_context.diff (5.8 KB) - added by Julien Phalip 10 years ago.
Patch contains tests and doc.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by Eric Holscher

Triage Stage: UnreviewedAccepted

+1 to this change.

Changed 10 years ago by Julien Phalip

Patch contains tests and doc.

comment:2 Changed 10 years ago by Julien Phalip

Component: UncategorizedTesting framework
milestone: 1.1

The patch is backward compatible. I hope it makes it into 1.1 as it makes testers' life a bit easier. And we want testers' life to be easy ;)

comment:3 Changed 10 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [10084]) Fixed #10482 -- Unified access to response.context when inspecting responses from the test client. Thanks to James Bennett for the design, and Julien Phalip for the patch.

comment:4 Changed 8 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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