#5888 closed (fixed)
Add head, options, put, delete to test Client
Reported by: | Owned by: | Leah Culver | |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Keywords: | Client | |
Cc: | Gabriel, David Larlet, Jeff Balogh | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | yes |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
To aid in unit testing RESTful interfaces I've added methods to the HTTP Client to support HEAD, OPTIONS, PUT and DELETE.
No tests.
Attachments (4)
Change History (17)
by , 17 years ago
Attachment: | test.client.patch added |
---|
by , 17 years ago
Attachment: | django.test.client.patch added |
---|
Changed the patch so that the file path is relative to the django source directory.
comment:1 by , 17 years ago
Needs tests: | set |
---|
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:3 by , 17 years ago
Cc: | added |
---|
i'd like to add my support for this. django test client could really use this for RESTful web service design -- an area we should be embracing.
comment:4 by , 17 years ago
Needs documentation: | set |
---|---|
Triage Stage: | Design decision needed → Accepted |
The idea and implementation is sound; however, this needs tests and documentation before it can go into trunk.
comment:5 by , 17 years ago
I needed DELETE and PUT too, implemented them before checking here myself, and actually my methods were quite similar.
Besides that, someone ought to get rid of the Content-Type header in GET requests, as GETs really do not have one...
comment:7 by , 16 years ago
milestone: | → post-1.0 |
---|
comment:8 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:9 by , 16 years ago
Cc: | added |
---|
comment:10 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
First cut. Addition of head, options, put and delete methods.