Opened 8 years ago

Closed 8 years ago

Last modified 5 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: UI/UX:

Description

James Bennett described the issue quite clearly on this django-developers thread: http://groups.google.com/group/django-developers/browse_thread/thread/1b10084ea969141e

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 8 years ago.
Patch contains tests and doc.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by Eric Holscher

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

+1 to this change.

Changed 8 years ago by Julien Phalip

Patch contains tests and doc.

comment:2 Changed 8 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 8 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 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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