Skip to content

Commit 27d7531

Browse files
committed
Update Playlist copyToUser test
1 parent c4834ff commit 27d7531

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_playlist.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,12 @@ def test_Play_photos(plex, client, photoalbum):
149149
time.sleep(2)
150150

151151

152-
def test_Playlist_copyToUser(plex, show, fresh_plex, shared_username):
152+
def test_Playlist_copyToUser(plex, show, shared_username):
153153
episodes = show.episodes()
154154
playlist = plex.createPlaylist('shared_from_test_plexapi', items=episodes)
155155
try:
156156
playlist.copyToUser(shared_username)
157-
user = plex.myPlexAccount().user(shared_username)
158-
user_plex = fresh_plex(plex._baseurl, user.get_token(plex.machineIdentifier))
157+
user_plex = plex.switchHomeUser(shared_username)
159158
assert playlist.title in [p.title for p in user_plex.playlists()]
160159
finally:
161160
playlist.delete()

0 commit comments

Comments
 (0)