Skip to content

Commit 46c9422

Browse files
celiaoclaude
andcommitted
Fix missing return statement in TV.watch_providers()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 559cefb commit 46c9422

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_tv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ def test_tv_videos(self):
142142
def test_tv_watch_providers(self):
143143
id = TV_ID
144144
tv = tmdb.TV(id)
145-
tv.watch_providers()
145+
response = tv.watch_providers()
146146
self.assertTrue(hasattr(tv, 'results'))
147+
self.assertIsNotNone(response)
147148

148149
def test_tv_rating_and_rating_delete(self):
149150
status_code_create = SUCCESSFUL_CREATE

tmdbsimple/tv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def watch_providers(self, **kwargs):
335335

336336
response = self._GET(path, kwargs)
337337
self._set_attrs_to_values(response)
338+
return response
338339

339340
def rating(self, **kwargs):
340341
"""

0 commit comments

Comments
 (0)