Skip to content

Commit

Permalink
Renamed collections to better represent what is being tested pkkid#1393
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Thompson committed Apr 9, 2024
1 parent 7f183d7 commit 947882d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ def test_library_fetchItems_with_maxresults(plex):
ids = [item.key for item in items1]
# Reduce '/library/metadata/123' to '123'
int_ids = [int(id.rsplit("/", 1)[-1]) for id in ids]
items2 = [item.key for item in plex.library.fetchItems(container_size=size, ekey=int_ids)]
items3 = [item.key for item in plex.library.fetchItems(
keys1 = [item.key for item in plex.library.fetchItems(container_size=size, ekey=int_ids)]
keys2 = [item.key for item in plex.library.fetchItems(
container_size=size, ekey=int_ids, maxresults=len(int_ids)
)]
assert len(items2) == len(set(items2))
assert len(items3) == len(set(items3))
assert len(keys1) == len(set(keys1))
assert len(keys2) == len(set(keys2))


def test_library_onDeck(plex, movie):
Expand Down

0 comments on commit 947882d

Please sign in to comment.