mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Add new collection attributes to tests
This commit is contained in:
parent
276a4f3b59
commit
15767e500a
1 changed files with 4 additions and 0 deletions
|
@ -12,7 +12,9 @@ def test_Collection_attrs(collection):
|
||||||
assert collection.artBlurHash is None
|
assert collection.artBlurHash is None
|
||||||
assert collection.childCount == 1
|
assert collection.childCount == 1
|
||||||
assert collection.collectionMode == -1
|
assert collection.collectionMode == -1
|
||||||
|
assert collection.collectionPublished is False
|
||||||
assert collection.collectionSort == 0
|
assert collection.collectionSort == 0
|
||||||
|
assert collection.content is None
|
||||||
assert collection.contentRating
|
assert collection.contentRating
|
||||||
assert not collection.fields
|
assert not collection.fields
|
||||||
assert collection.guid.startswith("collection://")
|
assert collection.guid.startswith("collection://")
|
||||||
|
@ -24,7 +26,9 @@ def test_Collection_attrs(collection):
|
||||||
assert collection.librarySectionTitle == "Movies"
|
assert collection.librarySectionTitle == "Movies"
|
||||||
assert utils.is_int(collection.maxYear)
|
assert utils.is_int(collection.maxYear)
|
||||||
assert utils.is_int(collection.minYear)
|
assert utils.is_int(collection.minYear)
|
||||||
|
assert utils.is_int(collection.ratingCount)
|
||||||
assert utils.is_int(collection.ratingKey)
|
assert utils.is_int(collection.ratingKey)
|
||||||
|
assert collection.smart is False
|
||||||
assert collection.subtype == "movie"
|
assert collection.subtype == "movie"
|
||||||
assert collection.summary == ""
|
assert collection.summary == ""
|
||||||
assert collection.thumb.startswith("/library/collections/%s/composite" % collection.ratingKey)
|
assert collection.thumb.startswith("/library/collections/%s/composite" % collection.ratingKey)
|
||||||
|
|
Loading…
Reference in a new issue