summaryrefslogtreecommitdiff
path: root/webtest/forms.py
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2013-09-18 13:36:33 +0300
committerMarius Gedminas <marius@gedmin.as>2013-09-18 13:36:33 +0300
commitb8fc110cffa27ead6702caf3eaf0f7b9a5e102fa (patch)
tree6c916b5d74e3f649e297a8ae6922522fbc7eca87 /webtest/forms.py
parenta1733d358b63f070d4b63b7fd54bcab45d3b3ff9 (diff)
downloadwebtest-b8fc110cffa27ead6702caf3eaf0f7b9a5e102fa.tar.gz
Make sure Upload.content_type is not ignored
Looks like there's a bazillion methods of specifying files you want to upload with a form, and I missed one of them. This adds a missing test case and fixes the bug. A followup fix for issue #86.
Diffstat (limited to 'webtest/forms.py')
-rw-r--r--webtest/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/forms.py b/webtest/forms.py
index c30fdf6..3269aa2 100644
--- a/webtest/forms.py
+++ b/webtest/forms.py
@@ -38,7 +38,7 @@ class Upload(object):
yield self.filename
if self.content:
yield self.content
- # XXX: do we need to yield self.content_type here?
+ yield self.content_type
# TODO: do we handle the case when we need to get
# contents ourselves?