Commits

Mikhail Korobov committed 7538cb0

Add missing property declaration to File field

  • Participants
  • Parent commits 048ff4e

Comments (0)

Files changed (2)

File tests/test_file_upload.py

     start_response(status, headers)
     return [body]
 
+
+def test_no_uploads_error():
+    app = webtest.TestApp(single_upload_file_app)
+    uploads = app.get('/').forms["file_upload_form"].upload_fields()
+
+
 def test_file_upload_with_filename_only():
     uploaded_file_name = \
         os.path.join(os.path.dirname(__file__), "__init__.py")

File webtest/__init__.py

         else:
             return self._value
 
+    value = property(value__get, Field.value__set)
+
 Field.classes['file'] = File
 
 class Textarea(Text):