diff options
author | Mike Crute <mike@crute.us> | 2020-12-19 21:36:08 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-12-19 21:36:08 +0000 |
commit | 816c7e47942c15b0ca35276fad8d23d33100798e (patch) | |
tree | d34ef0a1d922289a3c7cbbbb9aad8fa25f1889f6 /tests | |
parent | 135c4076374b5126bd49889ee9d994fac94e4119 (diff) | |
download | pydora-816c7e47942c15b0ca35276fad8d23d33100798e.tar.bz2 pydora-816c7e47942c15b0ca35276fad8d23d33100798e.tar.xz pydora-816c7e47942c15b0ca35276fad8d23d33100798e.zip |
New version of black moved the cheese :-(
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pandora/test_client.py | 4 | ||||
-rw-r--r-- | tests/test_pandora/test_models.py | 11 | ||||
-rw-r--r-- | tests/test_pandora/test_transport.py | 5 |
3 files changed, 16 insertions, 4 deletions
diff --git a/tests/test_pandora/test_client.py b/tests/test_pandora/test_client.py index 4262d34..7d3e7bd 100644 --- a/tests/test_pandora/test_client.py +++ b/tests/test_pandora/test_client.py | |||
@@ -203,7 +203,9 @@ class TestCreatingStation(TestCase): | |||
203 | class TestCreatingGenreStation(TestCase): | 203 | class TestCreatingGenreStation(TestCase): |
204 | def test_has_initial_checksum(self): | 204 | def test_has_initial_checksum(self): |
205 | fake_data = { | 205 | fake_data = { |
206 | "categories": [{"categoryName": "foo", "stations": []},], | 206 | "categories": [ |
207 | {"categoryName": "foo", "stations": []}, | ||
208 | ], | ||
207 | # Not actually part of the genre station response but is needed to | 209 | # Not actually part of the genre station response but is needed to |
208 | # fake out the mock for get_genre_stations_checksum | 210 | # fake out the mock for get_genre_stations_checksum |
209 | "checksum": "foo", | 211 | "checksum": "foo", |
diff --git a/tests/test_pandora/test_models.py b/tests/test_pandora/test_models.py index a155588..11f9f6a 100644 --- a/tests/test_pandora/test_models.py +++ b/tests/test_pandora/test_models.py | |||
@@ -64,7 +64,12 @@ class TestAdditionalUrlField(TestCase): | |||
64 | self.assertEqual(ret, {"foo": "test"}) | 64 | self.assertEqual(ret, {"foo": "test"}) |
65 | 65 | ||
66 | def test_multiple_urls(self): | 66 | def test_multiple_urls(self): |
67 | dummy_data = {"_paramAdditionalUrls": ["abc", "def",]} | 67 | dummy_data = { |
68 | "_paramAdditionalUrls": [ | ||
69 | "abc", | ||
70 | "def", | ||
71 | ] | ||
72 | } | ||
68 | 73 | ||
69 | field = plm.AdditionalUrlField("additionalAudioUrl") | 74 | field = plm.AdditionalUrlField("additionalAudioUrl") |
70 | 75 | ||
@@ -708,7 +713,9 @@ class TestGenreStationList(TestCase): | |||
708 | 713 | ||
709 | TEST_DATA = { | 714 | TEST_DATA = { |
710 | "checksum": "bar", | 715 | "checksum": "bar", |
711 | "categories": [{"categoryName": "foo", "stations": []},], | 716 | "categories": [ |
717 | {"categoryName": "foo", "stations": []}, | ||
718 | ], | ||
712 | } | 719 | } |
713 | 720 | ||
714 | def test_has_changed(self): | 721 | def test_has_changed(self): |
diff --git a/tests/test_pandora/test_transport.py b/tests/test_pandora/test_transport.py index 28ca6b2..ac32acf 100644 --- a/tests/test_pandora/test_transport.py +++ b/tests/test_pandora/test_transport.py | |||
@@ -118,7 +118,10 @@ class TestTransportSetters(TestCase): | |||
118 | 118 | ||
119 | def test_set_user(self): | 119 | def test_set_user(self): |
120 | self.transport.set_user( | 120 | self.transport.set_user( |
121 | {"userId": "user", "userAuthToken": "auth",} | 121 | { |
122 | "userId": "user", | ||
123 | "userAuthToken": "auth", | ||
124 | } | ||
122 | ) | 125 | ) |
123 | 126 | ||
124 | self.assertEqual("user", self.transport.user_id) | 127 | self.assertEqual("user", self.transport.user_id) |