Hello ! I'm having some issues in django unit testing. Is there anybody to help ?

17 views
Skip to first unread message

Nilima Dahal

unread,
Nov 6, 2020, 7:24:34 PM11/6/20
to Django users
Hello ! I'm having some issues in django unit testing. Is there anybody to help ? 
I'm having confusion in testing django mixins . Can anyone share his/her git with such unit testing or have some experienced shareable codes.

how do I test this ?

def dispatch(self,request,*args,**kwargs):
        if self.request.user.is_superuser:
            return super().dispatch(request, *args, **kwargs)
        return self.handle_no_permission()



Monaco investment

unread,
Nov 6, 2020, 7:59:40 PM11/6/20
to django...@googlegroups.com
Am having hard time learning django...can someone please get in touch...I will be really grateful... thanks


From: django...@googlegroups.com <django...@googlegroups.com> on behalf of Nilima Dahal <nilima...@gmail.com>
Sent: Friday, November 6, 2020 1:11:59 PM
To: Django users <django...@googlegroups.com>
Subject: Hello ! I'm having some issues in django unit testing. Is there anybody to help ?
 
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/44f22b97-7499-4762-92d2-59fa6dd6ad8bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages