diff options
-rw-r--r-- | tests/test_pandora/test_client.py | 1 | ||||
-rw-r--r-- | tests/test_pandora/test_transport.py | 1 | ||||
-rw-r--r-- | tests/test_pydora/test_utils.py | 18 |
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 @@ | |||
1 | import sys | ||
2 | import time | 1 | import time |
3 | import json | 2 | import json |
4 | import random | 3 | import 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) |