tests/test_tv_lookup: Add test_show_episodes_attack_on_titan test
MODIFY
tests/test_tv_lookup.py
tests/test_tv_lookup.py
@@ -39,9 +39,31 @@ def test_show_episodes():
episodes = seasons[1].episodes
assert episodes[0].title == "Winter Is Coming"
+
+def test_show_episodes_attack_on_titan():
+ show = TVShow("Attack on Titan")
+
+ assert len(show.seasons) > 0
seasons = show.seasons
- assert len(seasons) == 9
- assert seasons[1].episodes[0].title == "Winter Is Coming"
+ episodes = seasons[1].episodes
+ assert episodes[0].title == "To You, in 2000 Years: The Fall of Shiganshina (1)"
+
+ pe = PlexLibraryItem(
+ make(
+ cls="Episode",
+ guid="imdb://tt2825724",
+ type="episode",
+ seasonNumber=1,
+ index=1,
+ )
+ )
+
+ lookup = TraktLookup(show)
+ guid = pe.guids[0]
+ te = trakt.find_episode_guid(guid, lookup)
+ assert te.season == 1
+ assert te.episode == 1
+ assert te.imdb == "tt2825724"
def test_show_episodes_attack_on_titan_new_agent():
@@ -117,3 +139,4 @@ def test_find_episode():
if __name__ == '__main__':
test_show_episodes()
+ test_show_episodes_attack_on_titan()

tests/test_tv_lookup: Add test_show_episodes_attack_on_titan test