Unit test in django

2019-12-02 Thread Saswat Ray
*def webhook_register(request, organization_pk, campaign_id):user_id = Campaign.objects.filter(id=campaign_id)user_id = user_id[0].__dict__["user_id"]# social_user_details = UserSocialAuth.objects.filter(provider=request.GET["provider"], user_id=user_id)social_user_details =

Re: How do I properly unit test a Django session?

2010-03-31 Thread Phlip
adambossy wrote: > My problem is that I am trying to _write_ session variables before > calling my view. For example: Django really falls down here, especially compared to Brand X. Stuff a session like this: def assemble_session(self, dictionary): from django.conf import settings

Re: How do I properly unit test a Django session?

2010-03-31 Thread adambossy
ave() raises error for anonymous > > users" [http://code.djangoproject.com/ticket/11475] > > > I'm confused because both tickets have different ways of dealing with > > this problem and they were both Accepted. I assume this means they > > were patched and the behavior

Re: How do I properly unit test a Django session?

2010-03-31 Thread Thierry Chich
ifferent ways of dealing with > this problem and they were both Accepted. I assume this means they > were patched and the behavior is now different. I also don't know to > which versions these patches would pertain. > > If I'm writing a unit test in Django 1.0, how would I set up my &

How do I properly unit test a Django session?

2010-03-30 Thread adambossy
atched and the behavior is now different. I also don't know to which versions these patches would pertain. If I'm writing a unit test in Django 1.0, how would I set up my session store for sessions to work as they do in the browser? -- You received this message because you are subscribed to the Googl