Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Format with new Black release
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Oct 21, 2020
1 parent a7f7f54 commit d38e0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions spotify/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,10 @@ def get_published_playlists(self, canonical_username=None):
canonical_username = ffi.NULL
else:
canonical_username = utils.to_bytes(canonical_username)
sp_playlistcontainer = lib.sp_session_publishedcontainer_for_user_create(
self._sp_session, canonical_username
sp_playlistcontainer = (
lib.sp_session_publishedcontainer_for_user_create(
self._sp_session, canonical_username
)
)
if sp_playlistcontainer == ffi.NULL:
return None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ def test_inbox_post_tracks(self, inbox_mock, lib_mock):

@mock.patch('spotify.playlist.lib', spec=spotify.lib)
def test_get_starred(self, playlist_lib_mock, lib_mock):
lib_mock.sp_session_starred_for_user_create.return_value = spotify.ffi.cast(
'sp_playlist *', 42
lib_mock.sp_session_starred_for_user_create.return_value = (
spotify.ffi.cast('sp_playlist *', 42)
)
session = tests.create_real_session(lib_mock)

Expand Down

0 comments on commit d38e0ff

Please sign in to comment.