diff options
author | jcass <john.cass77@gmail.com> | 2015-10-30 06:28:08 +0200 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2015-12-05 18:51:30 -0800 |
commit | 37bb7ed8810c4d0f670fb7eee574816acd34cc0a (patch) | |
tree | 8615066e6e9cb166a450e0de77427b92fc6a246e /tests | |
parent | 1d09ea8698e30bd9d3c1a2193b7c0de4ed6ec3a9 (diff) | |
download | pydora-37bb7ed8810c4d0f670fb7eee574816acd34cc0a.tar.bz2 pydora-37bb7ed8810c4d0f670fb7eee574816acd34cc0a.tar.xz pydora-37bb7ed8810c4d0f670fb7eee574816acd34cc0a.zip |
Add ad_support configuration parameter support. Update test cases.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pandora/pianobar.cfg | 1 | ||||
-rw-r--r-- | tests/test_pandora/pydora.cfg | 1 | ||||
-rw-r--r-- | tests/test_pandora/test_clientbuilder.py | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_pandora/pianobar.cfg b/tests/test_pandora/pianobar.cfg index 7a915d8..7a0ffd8 100644 --- a/tests/test_pandora/pianobar.cfg +++ b/tests/test_pandora/pianobar.cfg | |||
@@ -1,5 +1,6 @@ | |||
1 | # high-quality audio (192k mp3, for Pandora One subscribers only!) | 1 | # high-quality audio (192k mp3, for Pandora One subscribers only!) |
2 | audio_quality = test_quality | 2 | audio_quality = test_quality |
3 | ad_support_enabled = test_ad_support | ||
3 | rpc_host = test_host | 4 | rpc_host = test_host |
4 | partner_user = test_partner_username | 5 | partner_user = test_partner_username |
5 | partner_password = test_partner_password | 6 | partner_password = test_partner_password |
diff --git a/tests/test_pandora/pydora.cfg b/tests/test_pandora/pydora.cfg index 854e377..fb75e2f 100644 --- a/tests/test_pandora/pydora.cfg +++ b/tests/test_pandora/pydora.cfg | |||
@@ -6,6 +6,7 @@ username = test_partner_username | |||
6 | password = test_partner_password | 6 | password = test_partner_password |
7 | device = test_device | 7 | device = test_device |
8 | default_audio_quality = test_quality | 8 | default_audio_quality = test_quality |
9 | ad_support_enabled = test_ad_support | ||
9 | 10 | ||
10 | [user] | 11 | [user] |
11 | username = test_username | 12 | username = test_username |
diff --git a/tests/test_pandora/test_clientbuilder.py b/tests/test_pandora/test_clientbuilder.py index 27117b0..6c65cd1 100644 --- a/tests/test_pandora/test_clientbuilder.py +++ b/tests/test_pandora/test_clientbuilder.py | |||
@@ -81,6 +81,7 @@ class TestSettingsDictBuilder(TestCase): | |||
81 | "PARTNER_PASSWORD": "pass", | 81 | "PARTNER_PASSWORD": "pass", |
82 | "DEVICE": "dev", | 82 | "DEVICE": "dev", |
83 | "PROXY": "proxy.example.com", | 83 | "PROXY": "proxy.example.com", |
84 | "AD_SUPPORT_ENABLED": "test_ad_support", | ||
84 | "AUDIO_QUALITY": "high", | 85 | "AUDIO_QUALITY": "high", |
85 | "API_HOST": "example.com", | 86 | "API_HOST": "example.com", |
86 | }).build() | 87 | }).build() |
@@ -181,6 +182,7 @@ class TestPydoraConfigFileBuilder(TestCase): | |||
181 | 182 | ||
182 | self.assertDictEqual(cfg, { | 183 | self.assertDictEqual(cfg, { |
183 | "AUDIO_QUALITY": "test_quality", | 184 | "AUDIO_QUALITY": "test_quality", |
185 | "AD_SUPPORT_ENABLED": "test_ad_support", | ||
184 | "DECRYPTION_KEY": "test_decryption_key", | 186 | "DECRYPTION_KEY": "test_decryption_key", |
185 | "DEVICE": "test_device", | 187 | "DEVICE": "test_device", |
186 | "ENCRYPTION_KEY": "test_encryption_key", | 188 | "ENCRYPTION_KEY": "test_encryption_key", |
@@ -202,6 +204,7 @@ class TestPianobarConfigFileBuilder(TestCase): | |||
202 | 204 | ||
203 | self.assertDictEqual(cfg, { | 205 | self.assertDictEqual(cfg, { |
204 | "AUDIO_QUALITY": "test_qualityQuality", | 206 | "AUDIO_QUALITY": "test_qualityQuality", |
207 | "AD_SUPPORT_ENABLED": "test_ad_support", | ||
205 | "DECRYPTION_KEY": "test_decryption_key", | 208 | "DECRYPTION_KEY": "test_decryption_key", |
206 | "DEVICE": "test_device", | 209 | "DEVICE": "test_device", |
207 | "ENCRYPTION_KEY": "test_encryption_key", | 210 | "ENCRYPTION_KEY": "test_encryption_key", |