def setUp(self): FacebookTest.setUp(self) # According to django/test/testcase.py, the scheme and # domain are not included on redirect_chain on django 1.9 self.default_url = \ facebook_settings.FACEBOOK_LOGIN_DEFAULT_REDIRECT self.url = reverse('facebook_connect') self.example_url = reverse('facebook_example')
def setUp(self): FacebookTest.setUp(self) self.base_url = base_url = 'http://testserver' self.absolute_default_url = base_url + \ facebook_settings.FACEBOOK_LOGIN_DEFAULT_REDIRECT self.url = reverse('facebook_connect') self.absolute_url = base_url + reverse('facebook_connect') self.example_url = reverse('facebook_example') self.absolute_example_url = base_url + reverse('facebook_example')
def setUp(self): FacebookTest.setUp(self) user_url = 'http://www.fashiolista.com/style/neni/' kwargs = dict(item=user_url) user = get_user_model().objects.all()[:1][0] profile = try_get_profile(user) user_or_profile = get_instance_for_attribute(user, profile, 'facebook_open_graph') user_or_profile.facebook_open_graph = True user_or_profile.save() some_content_type = ContentType.objects.all()[:1][0] share = OpenGraphShare.objects.create( user_id=user.id, facebook_user_id=13123123, action_domain='fashiolista:follow', content_type=some_content_type, object_id=user.id, ) share.set_share_dict(kwargs) share.save() self.share = share self.share_details = user, profile, share
def setUp(self): FacebookTest.setUp(self) user_url = 'http://www.fashiolista.com/style/neni/' kwargs = dict(item=user_url) user = get_user_model().objects.all()[:1][0] profile = try_get_profile(user) user_or_profile = get_instance_for_attribute( user, profile, 'facebook_open_graph') user_or_profile.facebook_open_graph = True user_or_profile.save() some_content_type = ContentType.objects.all()[:1][0] share = OpenGraphShare.objects.create( user_id=user.id, facebook_user_id=13123123, action_domain='fashiolista:follow', content_type=some_content_type, object_id=user.id, ) share.set_share_dict(kwargs) share.save() self.share = share self.share_details = user, profile, share
def setUp(self): FacebookTest.setUp(self) from django_facebook.decorators import facebook_required self.decorator = facebook_required self.decorator_name = 'FacebookRequired'
def setUp(self): FacebookTest.setUp(self)
def setUp(self): FacebookTest.setUp(self) self.url = reverse('facebook_connect')