Example #1
0
async def test_and_get_me_attr_attr_exists_async():
    spt = AsyncSpotify()

    spt.user_creds = UserCreds()
    spt.user_creds.id = "id1234"

    assert await _set_and_get_me_attr_async(spt, "id") == "id1234"
Example #2
0
def async_spotify_user_auth():
    spotify = AsyncSpotify()
    user_creds = UserCreds()
    client_creds = ClientCreds()
    client_creds.load_from_env()
    user_creds.load_from_env()
    spotify.client_creds = client_creds
    spotify.user_creds = user_creds
    spotify._caller = spotify.user_creds
    yield spotify