from django.core.urlresolvers to resolve a URL which the test should
call. Example:
url = reverse('webapp_home')
form = self.app.get(url).form
Now I need to add a query parameter to every url. This is to mimic a
Facebook request which will always have the signed_request query
parameter. So in theory I could just do this:
url = reverse('webapp_home') + "?
signed_request=vlXgu64BQGFSQrY0ZcJBZASMvYvTHu9GQ0YM9rjPSso.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsIjAiOiJwYXlsb2FkIn0"
form = self.app.get(url).form
This is an example of a signed_request from the Facebook
documentation. Since, I am a bit lazy, is there a way to sort of
intercept all calls to reverse and add the signed_request parameter
every time?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment