diff options
author | jcass <john.cass77@gmail.com> | 2015-11-12 11:00:15 +0200 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2015-12-05 18:51:30 -0800 |
commit | 6d007190e995fca4bf87699fe9468eb0e0644542 (patch) | |
tree | eee7d2b0cac2eedbd56fbf143bb8d30e7cf8e0af /tests | |
parent | b2e4b0eaf67714c180feec53e5b0021d911d8f8d (diff) | |
download | pydora-6d007190e995fca4bf87699fe9468eb0e0644542.tar.bz2 pydora-6d007190e995fca4bf87699fe9468eb0e0644542.tar.xz pydora-6d007190e995fca4bf87699fe9468eb0e0644542.zip |
Enable advertisement support by default. Reformat code layout.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pandora/test_client.py | 2 | ||||
-rw-r--r-- | tests/test_pandora/test_clientbuilder.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pandora/test_client.py b/tests/test_pandora/test_client.py index 01fb9ae..6c14f50 100644 --- a/tests/test_pandora/test_client.py +++ b/tests/test_pandora/test_client.py | |||
@@ -60,7 +60,7 @@ class TestCallingAPIClient(TestCase): | |||
60 | with patch.object(APIClient, '__call__') as playlist_mock: | 60 | with patch.object(APIClient, '__call__') as playlist_mock: |
61 | transport = Mock(side_effect=[InvalidAuthToken(), None]) | 61 | transport = Mock(side_effect=[InvalidAuthToken(), None]) |
62 | 62 | ||
63 | client = APIClient(transport, None, None, None, None) | 63 | client = APIClient(transport, None, None, None, None, False) |
64 | client._authenticate = Mock() | 64 | client._authenticate = Mock() |
65 | 65 | ||
66 | client.get_playlist('mock_token') | 66 | client.get_playlist('mock_token') |
diff --git a/tests/test_pandora/test_clientbuilder.py b/tests/test_pandora/test_clientbuilder.py index 1882c53..d4f8db0 100644 --- a/tests/test_pandora/test_clientbuilder.py +++ b/tests/test_pandora/test_clientbuilder.py | |||
@@ -98,7 +98,7 @@ class TestSettingsDictBuilder(TestCase): | |||
98 | self.assertEqual(DEFAULT_API_HOST, client.transport.api_host) | 98 | self.assertEqual(DEFAULT_API_HOST, client.transport.api_host) |
99 | self.assertEqual(APIClient.MED_AUDIO_QUALITY, | 99 | self.assertEqual(APIClient.MED_AUDIO_QUALITY, |
100 | client.default_audio_quality) | 100 | client.default_audio_quality) |
101 | self.assertEqual(False, | 101 | self.assertEqual(True, |
102 | client.ad_support_enabled) | 102 | client.ad_support_enabled) |
103 | 103 | ||
104 | def test_validate_client(self): | 104 | def test_validate_client(self): |