Changes between Initial Version and Version 1 of Ticket #16916


Ignore:
Timestamp:
Sep 25, 2011, 1:51:10 AM (13 years ago)
Author:
Aymeric Augustin
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 Triage Stage UnreviewedAccepted
    • Property Summary Please document django.test.Class.defaultsPlease document django.test.Client.defaults
    • Property Type UncategorizedCleanup/optimization
  • 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