def make_client(): """Create a client object""" key, secret = apikey.key, apikey.secret client = GoodreadsClient(key, secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) return client
def test_many_authors(self): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) book = client.book('18774683') assert len(book.authors) == 2 assert isinstance(book.authors[0], GoodreadsAuthor)
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.book = client.book('11870085')
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.author = client.author('64941')
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.owned_book = client.owned_book('43018920')
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.group = client.group(1)
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.events = client.list_events(55408) cls.event = cls.events[0]
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.comments = client.list_comments('user', '1') cls.comment = cls.comments[0]
def setup_class(cls): client = GoodreadsClient(apikey.key, apikey.secret) client.authenticate(apikey.oauth_access_token, apikey.oauth_access_token_secret) cls.comments = client.list_comments('user', '1')