Opened 19 years ago
Closed 19 years ago
#3160 closed enhancement (fixed)
Make raw post (e.g. XML) with django.test.client.Client more convinient
| Reported by: | Owned by: | Russell Keith-Magee | |
|---|---|---|---|
| Component: | Testing framework | Version: | dev | 
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | yes | Needs documentation: | yes | 
| Needs tests: | yes | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
As described in this mailing list thread adding a raw_post method to the test Client class would allow simple posting of raw data, such as XML or JSON, to views. This would make testing AJAX views and views that communicate with other agents than browsers easier.
Attachments (2)
Change History (6)
by , 19 years ago
| Attachment: | test_client_raw_post.patch added | 
|---|
comment:1 by , 19 years ago
| Needs documentation: | set | 
|---|---|
| Needs tests: | set | 
comment:2 by , 19 years ago
| Has patch: | set | 
|---|
comment:3 by , 19 years ago
| Triage Stage: | Unreviewed → Design decision needed | 
|---|
by , 19 years ago
| Attachment: | test_client_raw_post_v2.patch added | 
|---|
Revised version of raw_post patch, includes tests and docs
comment:4 by , 19 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
[patch] Add raw_post method to django.test.client.Client