Repository URL to install this package:
|
Version:
0.2.10 ▾
|
from social.p3 import urlencode
from social.tests.backends.oauth import OAuth1Test
class ZoteroOAuth1Test(OAuth1Test):
backend_path = 'social.backends.zotero.ZoteroOAuth'
expected_username = 'FooBar'
access_token_body = urlencode({
'oauth_token': 'foobar',
'oauth_token_secret': 'rodgsNDK4hLJU1504Atk131G',
'userID': '123456_abcdef',
'username': 'FooBar'
})
request_token_body = urlencode({
'oauth_token_secret': 'foobar-secret',
'oauth_token': 'foobar',
'oauth_callback_confirmed': 'true'
})
def test_login(self):
self.do_login()
def test_partial_pipeline(self):
self.do_partial_pipeline()