async def get_album_from_qq(request: web.Request): return await get_album(qq.QQ(), request.match_info['album_id'])
async def get_playlist_from_qq(request: web.Request): return await get_playlist(qq.QQ(), request.match_info['playlist_id'])
async def search_songs_from_qq(request: web.Request): return await search_songs(qq.QQ(), request.match_info['keyword'])
async def get_song_from_qq(request: web.Request): return await get_song(qq.QQ(), request.match_info['song_id'])
async def test_get_song_lyric(self): async with qq.QQ() as client: resp = await client.get_song_lyric('002Zkt5S2z8JZx') self.assertIsNotNone(resp)
async def test_get_playlist(self): async with qq.QQ() as client: resp = await client.get_playlist('5474239760') self.assertIsNotNone(resp)
async def test_get_album(self): async with qq.QQ() as client: resp = await client.get_album('002fRO0N4FftzY') self.assertIsNotNone(resp)
async def test_get_artist(self): async with qq.QQ() as client: resp = await client.get_artist('000Sp0Bz4JXH0o') self.assertIsNotNone(resp)
async def test_search_songs(self): async with qq.QQ() as client: resp = await client.search_songs('五月天') self.assertIsNotNone(resp)