Add new collection attributes to tests

This commit is contained in:
JonnyWong16 2021-04-23 13:59:02 -07:00
parent 276a4f3b59
commit 15767e500a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -12,7 +12,9 @@ def test_Collection_attrs(collection):
assert collection.artBlurHash is None
assert collection.childCount == 1
assert collection.collectionMode == -1
assert collection.collectionPublished is False
assert collection.collectionSort == 0
assert collection.content is None
assert collection.contentRating
assert not collection.fields
assert collection.guid.startswith("collection://")
@ -24,7 +26,9 @@ def test_Collection_attrs(collection):
assert collection.librarySectionTitle == "Movies"
assert utils.is_int(collection.maxYear)
assert utils.is_int(collection.minYear)
assert utils.is_int(collection.ratingCount)
assert utils.is_int(collection.ratingKey)
assert collection.smart is False
assert collection.subtype == "movie"
assert collection.summary == ""
assert collection.thumb.startswith("/library/collections/%s/composite" % collection.ratingKey)