#12412 closed (fixed)
testing docs could be more helpful regarding posting files
Reported by: | KyleMac | Owned by: | Gabriel Hurley |
---|---|---|---|
Component: | Documentation | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
http://docs.djangoproject.com/en/dev/topics/testing/#django.test.client.Client.post
1) Doesn't show that image files for ImageFields need to be opened in binary mode.
2) Doesn't mention that you can't reuse the same handle for multiple fields or tests without manually resetting the pointer.
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 15 years ago
Attachment: | 12412_testing_docs.diff added |
---|
comment:2 by , 15 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Summary: | Submitting files in tests docs are inaccurate → testing docs could be more helpful regarding posting files |
It's not really that the docs are inaccurate. Those are fairly universal notes about file handling in Python. However, there's no reason Django's docs can't be extra-helpful and remind people of these things. Patch attached.
comment:3 by , 15 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
Adds notes about file handling to testing docs.