#2070: Large streaming uploads
---------------------------------------------------------------+------------
   Reporter:  [EMAIL PROTECTED]                         |                Owner: 
 axiak         
     Status:  new                                              |            
Component:  Core framework
    Version:  SVN                                              |           
Resolution:                
   Keywords:  streaming, upload, large, sprintsept14, feature  |                
Stage:  Accepted      
  Has_patch:  1                                                |           
Needs_docs:  0             
Needs_tests:  0                                                |   
Needs_better_patch:  0             
---------------------------------------------------------------+------------
Comment (by Faheem Mitha <[EMAIL PROTECTED]>):

 I'm getting

 Ran 155 tests in 55.010s

 FAILED (failures=1, errors=1)

 when I run the tests on 5820 with 5820_streaming_file_upload.diff applied.

 They look like

 1) Traceback (most recent call last):
   File "/usr/local/src/django/django-
 trunk.hg.5820+streaming/tests/modeltests/test_client/models.py", line 91,
 in test_post_file_view
     response = self.client.post('/test_client/post_file_view/', post_data)
   File "/usr/local/lib/python2.4/site-packages/django/test/client.py",
 line 222, in post
     return self.request(**r)
   File "/usr/local/lib/python2.4/site-
 packages/django/core/handlers/base.py", line 77, in get_response
     response = callback(request, *callback_args, **callback_kwargs)
   File "/usr/local/src/django/django-
 trunk.hg.5820+streaming/tests/modeltests/test_client/views.py", line 52,
 in post_file_view
     c = Context({'file': request.FILES['file_file']})
   File "/usr/local/lib/python2.4/site-
 packages/django/utils/datastructures.py", line 143, in __getitem__
     raise MultiValueDictKeyError, "Key %r not found in %r" % (key, self)
 MultiValueDictKeyError: 'Key \'file_file\' not found in <MultiValueDict:
 {\'file\': [{\'content\': \'# coding: utf-8\\n"""\\n38. Testing usi
 [...]

 2) FAIL: test_simple_upload
 (regressiontests.test_client_regress.models.AssertFileUploadTests)

 Traceback (most recent call last):
   File "/usr/local/src/django/django-
 trunk.hg.5820+streaming/tests/regressiontests/test_client_regress/models.py",
 line 215, in test_simple_upload
     self.assertEqual(response.status_code, 200)
 AssertionError: 500 != 200

 Am I doing something wrong here?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2070#comment:192>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to