#10226: dango.test.client.Client raise a value error when used against the admin
with a get parameter
----------------------------------+-----------------------------------------
 Reporter:  batiste               |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.0       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 Hello,

 I have this problem when I want to test my admin application:

 Hello, I have the same error with this test:



 {{{

 from django.test import TestCase

 from datetime import datetime



 class PostBugTestCase(TestCase):



     fixtures = ['tests.json']



     def test_stuff(self):



         from django.test.client import Client

         c = Client()

         data = {'question':'test', 'pub_date':datetime.now()}

         print c.login(username='batiste', password='b')

         response = c.post('/admin/toto/poll/add/?toto=true', data)

         self.assertRedirects(response, '/admin/toto/poll/')




 >>> ./manage test
 ValueError: invalid literal for int() with base 10: 'add/?toto=true'
 }}}

 I use the Poll model from the tutorial to show the problem.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10226>
Django <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