Exemple #1
0
    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')
Exemple #2
0
    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')
Exemple #3
0
    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')
Exemple #4
0
    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')
Exemple #5
0
    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
Exemple #6
0
    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
Exemple #7
0
 def setUp(self):
     FacebookTest.setUp(self)
     from django_facebook.decorators import facebook_required
     self.decorator = facebook_required
     self.decorator_name = 'FacebookRequired'
Exemple #8
0
 def setUp(self):
     FacebookTest.setUp(self)
     from django_facebook.decorators import facebook_required
     self.decorator = facebook_required
     self.decorator_name = 'FacebookRequired'
Exemple #9
0
 def setUp(self):
     FacebookTest.setUp(self)
Exemple #10
0
    def setUp(self):
        FacebookTest.setUp(self)

        self.url = reverse('facebook_connect')
Exemple #11
0
 def setUp(self):
     FacebookTest.setUp(self)