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.
def dispatch(self,request,*args,**kwargs):
if self.request.user.is_superuser:
return super().dispatch(request, *args, **kwargs)
return self.handle_no_permission()