Skip to content

Commit

Permalink
Test list items types
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 8, 2024
1 parent b9b869f commit 9d18e21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_lists.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
from trakt.movies import Movie
from trakt.tv import TVEpisode, TVSeason, TVShow
from trakt.users import PublicList


Expand All @@ -13,3 +15,7 @@ def test_public_list():

# Test iter
assert len(l) == 4

# enumerate list items
instancetypes = (Movie, TVShow, TVSeason, TVEpisode)
assert all([isinstance(k.item, instancetypes) for k in l])

0 comments on commit 9d18e21

Please sign in to comment.