Re: intercept calls to reverse(..) in tests

2011-09-17 Thread DrBloodmoney
On Sat, Sep 17, 2011 at 7:47 AM, Reikje wrote: > Okay I am having some troubles getting this to work. In my application > I am using WebTest and django-webtest to do template testing. In order > to monkeypatch the django.core.urlresolvers.reverse function, I have > created a new Test base that loo

Re: intercept calls to reverse(..) in tests

2011-09-17 Thread Reikje
Okay I am having some troubles getting this to work. In my application I am using WebTest and django-webtest to do template testing. In order to monkeypatch the django.core.urlresolvers.reverse function, I have created a new Test base that looks like this: class FacebookWebTest(WebTest): def

Re: intercept calls to reverse(..) in tests

2011-09-07 Thread Reikje
Excellent Daniel, thanks a lot. On Sep 7, 10:23 am, Daniel Roseman wrote: > On Wednesday, 7 September 2011 07:49:00 UTC+1, Reikje wrote: > > > Hi, I have a bunch of WebTest's which are using the reverse method > > from django.core.urlresolvers to resolve a URL which the test should > > call. Exam

Re: intercept calls to reverse(..) in tests

2011-09-07 Thread Daniel Roseman
On Wednesday, 7 September 2011 07:49:00 UTC+1, Reikje wrote: > > Hi, I have a bunch of WebTest's which are using the reverse method > 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

intercept calls to reverse(..) in tests

2011-09-06 Thread Reikje
Hi, I have a bunch of WebTest's which are using the reverse method 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 w