Changes between Initial Version and Version 1 of Ticket #16916


Ignore:
Timestamp:
09/25/11 01:51:10 (4 years ago)
Author:
aaugustin
Comment:

Defaults can also be passed in Client.__init__. Basically, these values just update the WSGI environ dictionary. There is no fixed list.

The values from the keywords argument to theget/post/etc. methods have precedence, then those passed in __init__, and then the defaults.

Indeed, this isn't documented.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16916

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Summary changed from Please document django.test.Class.defaults to Please document django.test.Client.defaults
    • Property Needs documentation unset
    • Property Type changed from Uncategorized to Cleanup/optimization
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #16916 – Description

    initial v1  
    1 The documentation makes it clear that I can provide an HTTP_USER_AGENT to the test client's methods, but it would have been nice to have it documented that the defaults exist, and how useful they are.
     1The documentation makes it clear that I can provide an `HTTP_USER_AGENT` to the test client's methods, but it would have been nice to have it documented that the defaults exist, and how useful they are.
Back to Top