aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_pandora/test_client.py1
-rw-r--r--tests/test_pandora/test_transport.py1
-rw-r--r--tests/test_pydora/test_utils.py18
3 files changed, 9 insertions, 11 deletions
diff --git a/tests/test_pandora/test_client.py b/tests/test_pandora/test_client.py
index 69eac65..8144f42 100644
--- a/tests/test_pandora/test_client.py
+++ b/tests/test_pandora/test_client.py
@@ -236,7 +236,6 @@ class TestAdditionalUrls(TestCase):
236 stationToken='token_mock', 236 stationToken='token_mock',
237 xplatformAdCapable=True)]) 237 xplatformAdCapable=True)])
238 238
239
240 def test_with_enum(self): 239 def test_with_enum(self):
241 with patch.object(APIClient, '__call__') as playlist_mock: 240 with patch.object(APIClient, '__call__') as playlist_mock:
242 transport = Mock(side_effect=[errors.InvalidAuthToken(), None]) 241 transport = Mock(side_effect=[errors.InvalidAuthToken(), None])
diff --git a/tests/test_pandora/test_transport.py b/tests/test_pandora/test_transport.py
index 7eaaa6b..851fa06 100644
--- a/tests/test_pandora/test_transport.py
+++ b/tests/test_pandora/test_transport.py
@@ -1,4 +1,3 @@
1import sys
2import time 1import time
3import json 2import json
4import random 3import random
diff --git a/tests/test_pydora/test_utils.py b/tests/test_pydora/test_utils.py
index 475a7b5..fc33a40 100644
--- a/tests/test_pydora/test_utils.py
+++ b/tests/test_pydora/test_utils.py
@@ -40,12 +40,12 @@ class TestIterateForever(TestCase):
40 side_effect=ParameterMissing("ParameterMissing")) 40 side_effect=ParameterMissing("ParameterMissing"))
41 41
42 with plmock as get_playlist_mock: 42 with plmock as get_playlist_mock:
43 with self.assertRaises(ParameterMissing): 43 with self.assertRaises(ParameterMissing):
44 station = Station.from_json( 44 station = Station.from_json(
45 self.client, {'stationToken': 'token_mock'}) 45 self.client, {'stationToken': 'token_mock'})
46 track_mock = PlaylistItem.from_json( 46 track_mock = PlaylistItem.from_json(
47 self.client, {'token': 'token_mock'}) 47 self.client, {'token': 'token_mock'})
48 get_playlist_mock.return_value = iter([track_mock]) 48 get_playlist_mock.return_value = iter([track_mock])
49 49
50 station_iter = iterate_forever(station.get_playlist) 50 station_iter = iterate_forever(station.get_playlist)
51 next(station_iter) 51 next(station_iter)