Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
janez troha committed Oct 22, 2013
1 parent 81ecbb1 commit 781bd50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_soundcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""

__version__ = '1.0.15'
__version__ = '1.0.16'


class SoundCloudExtension(ext.Extension):
Expand Down
3 changes: 3 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ def test_resolves_object(self):
def test_resolves_emptyTrack(self):

track = self.api.get_track('s38720262')
self.assertIsInstance(track, Track)
self.assertEquals(track.uri, None)

def test_resolves_Track(self):

track = self.api.get_track('38720262')
self.assertIsInstance(track, Track)
self.assertEquals(track.uri, 'soundcloud:song;38720262')

def test_resolves_stream_Track(self):

track = self.api.get_track('38720262', True)
self.assertIsInstance(track, Track)
self.assertEquals(track.uri, 'https://api.soundcloud.com/tracks/38720262/stream?client_id=93e33e327fd8a9b77becd179652272e2'
)

0 comments on commit 781bd50

Please sign in to comment.