Permalink
Browse files

Fix broken User() call

  • Loading branch information...
1 parent fff3573 commit b89ebd6f0e49ac061381a8eadbc76b5f310e7d8e @jodal jodal committed Mar 3, 2014
Showing with 3 additions and 1 deletion.
  1. +1 −0 spotify/playlist.py
  2. +2 −1 tests/test_playlist_container.py
View
@@ -1054,6 +1054,7 @@ def move_playlist(self, from_index, to_index, dry_run=False):
def owner(self):
"""The :class:`User` object for the owner of the playlist container."""
return spotify.User(
+ self._session,
sp_user=lib.sp_playlistcontainer_owner(self._sp_playlistcontainer),
add_ref=True)
@@ -939,7 +939,8 @@ def test_owner(self, user_mock, lib_mock):
lib_mock.sp_playlistcontainer_owner.assert_called_with(
sp_playlistcontainer)
- user_mock.assert_called_with(sp_user=sp_user, add_ref=True)
+ user_mock.assert_called_with(
+ self.session, sp_user=sp_user, add_ref=True)
self.assertEqual(result, mock.sentinel.user)
def test_get_unseen_tracks(self, lib_mock):

0 comments on commit b89ebd6

Please sign in to comment.