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

Commit

Permalink
Browse files Browse the repository at this point in the history
break long lines
  • Loading branch information
simon-weber committed Jun 15, 2017
1 parent 4c17e05 commit 2d3611f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions gmusicapi/clients/mobileclient.py
Expand Up @@ -211,7 +211,8 @@ def get_all_songs(self, incremental=False, include_deleted=None, updated_after=N
"""

tracks = self._get_all_items(mobileclient.ListTracks, incremental, updated_after=updated_after)
tracks = self._get_all_items(mobileclient.ListTracks, incremental,
updated_after=updated_after)

return tracks

Expand Down Expand Up @@ -420,7 +421,8 @@ def get_all_playlists(self, incremental=False, include_deleted=None, updated_aft
}
"""

playlists = self._get_all_items(mobileclient.ListPlaylists, incremental, updated_after=updated_after)
playlists = self._get_all_items(mobileclient.ListPlaylists, incremental,
updated_after=updated_after)

return playlists

Expand Down
6 changes: 4 additions & 2 deletions gmusicapi/test/server_tests.py
Expand Up @@ -764,7 +764,8 @@ def mc_list_songs_inc_equal(self):

@song_test
def mc_list_songs_updated_after(self):
songs_last_minute = self.mc.get_all_songs(updated_after=datetime.datetime.now() - datetime.timedelta(minutes=1))
songs_last_minute = self.mc.get_all_songs(
updated_after=datetime.datetime.now() - datetime.timedelta(minutes=1))
assert_not_equal(len(songs_last_minute), 0)

all_songs = self.mc.get_all_songs()
Expand Down Expand Up @@ -843,7 +844,8 @@ def assert_public_equal(plid, public):

@playlist_test
def mc_list_playlists_updated_after(self):
pls_last_minute = self.mc.get_all_playlists(updated_after=datetime.datetime.now() - datetime.timedelta(minutes=1))
pls_last_minute = self.mc.get_all_playlists(
updated_after=datetime.datetime.now() - datetime.timedelta(minutes=1))
assert_not_equal(len(pls_last_minute), 0)
print(pls_last_minute)

Expand Down

0 comments on commit 2d3611f

Please sign in to comment.