Commit graph

207 commits

Author SHA1 Message Date
JonnyWong16
3bebeaacd5
Add tests for Plex Web URLs 2021-08-25 18:10:11 -07:00
JonnyWong16
2c540f69c8
Add producers, roles, and hasCommercialMarker to Episode objects (#797)
* Add producers and roles to Episode

* Add producers and roles to episode test

* Add hasCommercialMarker to Episode
2021-07-26 20:36:54 -05:00
JonnyWong16
40c22711a6
Fix updateProgress and updateTimeline tests milliseconds 2021-07-04 21:32:58 -07:00
JonnyWong16
c136c594ea
Mark online media sources tests with xfail
* Test account is missing online media sources?
2021-06-06 18:39:45 -07:00
JonnyWong16
6405d226a4
Mark movies extras test only available for Plex Pass 2021-06-06 17:33:08 -07:00
JonnyWong16
0626334ed5
Add tests for movie augmentation, reviews, and extras 2021-06-06 17:23:49 -07:00
JonnyWong16
f90698f69d
Merge pull request #764 from JonnyWong16/feature/rating_mixin
Add rating mixin
2021-06-06 14:32:57 -07:00
JonnyWong16
f39d9b78ad
Merge remote-tracking branch 'upstream/master' into bugfix/fix_tests 2021-06-06 14:18:26 -07:00
JonnyWong16
e965ebbbe6
Merge remote-tracking branch 'upstream/master' into feature/rating_mixin 2021-06-06 12:54:09 -07:00
JonnyWong16
dbd39abb65
pytest mark xfail show mixins image test 2021-05-30 18:31:31 -07:00
JonnyWong16
b269140943
Fix rating mixin tests 2021-05-30 16:22:54 -07:00
JonnyWong16
bd8cdb10b7 Update tests for ratings mixin 2021-05-30 15:49:45 -07:00
JonnyWong16
b19b469eb0
Update pytest fixtures 2021-05-29 16:57:42 -07:00
JonnyWong16
c76b2d4027
Merge remote-tracking branch 'upstream/master' into feature/multi_sort 2021-05-23 20:39:08 -07:00
JonnyWong16
a9597a9008
Merge remote-tracking branch 'upstream/master' into feature/plex_tv 2021-05-23 19:12:38 -07:00
JonnyWong16
c4522d9c6b
Merge pull request #746 from JonnyWong16/feature/properties
Add episodeNumber, trackNumber, and hasPreviewThumbnails helper properties
2021-05-23 19:02:20 -07:00
JonnyWong16
8c2b3ce063
Merge pull request #741 from JonnyWong16/feature/tag_items
Add ability to retrieve a list of items and collection object from media tags
2021-05-23 19:01:07 -07:00
JonnyWong16
893a992855
Merge pull request #739 from Alindil/patch-2
Add method to return a list of all optimized items
2021-05-23 19:00:25 -07:00
JonnyWong16
85e58feb33
Update tests for lastRatedAt 2021-05-15 22:38:54 -07:00
JonnyWong16
a8e8679fb5
Update tests for optimized items 2021-05-14 16:29:44 -07:00
JonnyWong16
0f861391b6
Remove banners from tests
* Banners are not supported anymore. https://forums.plex.tv/t/bug-cannot-upload-background-artwork-for-episodes/692999/8
2021-05-11 15:44:36 -07:00
JonnyWong16
fe42061ce1
Add tests for hasPreviewThumbnails properties 2021-05-10 18:13:47 -07:00
JonnyWong16
ac7becd27f
Add tests for episodeNumber and trackNumber properties 2021-05-10 18:13:31 -07:00
JonnyWong16
aeadd76f9f
Fix tests for Plex TV Series agent 2021-05-09 22:05:54 -07:00
JonnyWong16
ec60eeea44
Update tests for new Plex TV agent 2021-05-09 21:28:17 -07:00
JonnyWong16
71e7ee2660
Add tests for media tags 2021-05-09 20:03:12 -07:00
JonnyWong16
158c5f5633
Merge pull request #730 from JonnyWong16/bugfix/episode_tests
Fix retrieving Season.episode() by episode number
2021-05-09 19:44:52 -07:00
JonnyWong16
e877b0039b
Add tests for Season, Episode, and Track collection tags 2021-05-09 12:27:38 -07:00
JonnyWong16
148ea7f352
Fix episode test watched/unwatched name 2021-04-24 11:26:31 -07:00
meisnate12
5584ef1d4f
Added AdvancedSettingsMixin (#714)
* Added AdvancedSettingsMixin

* forgot import

* shortened line

* remove whitespace

* removed unused import

* reordered mixins

* Add preference method to AdvancedSettingsMixin

* Add tests for AdvancedSettingsMixin

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2021-04-05 15:44:49 -05:00
JonnyWong16
c15133da88
Adds Movie and Artist advanced setting attributes (#680)
* Add advanced setting attributes to movie

* Add advanced setting attributes to artist

* Update tests for movie advanced setting attributes

* Update tests for artist advanced setting attributes

* Fix artist albumSort attribute
2021-03-11 11:20:28 -06:00
JonnyWong16
7bdc9ed137
Add support for the new Plex TV agent (#679)
* Add new Plex TV agent to library doc string

* Update new Plex TV agent show/season/episode attributes

* Update tests for new Plex TV agent show/season/episode attributes

* Fix test for show attributes

* Add network attribute to show

* Add show network to tests
2021-03-11 11:19:54 -06:00
JonnyWong16
bdec69e4a2
Update show/season watched/unwatched tests 2021-03-01 17:54:43 -08:00
JonnyWong16
75e3d4c53c
Add show tag line to tests 2021-02-26 23:02:38 -08:00
Shubhendra Singh Chauhan
12cf146ace
fix: code quality issues (#670)
* Remove unnecessary use of comprehension

* Remove unnecessary comprehension

* Use literal syntax instead of function calls to create data structure

* Pass string format arguments as logging method parameters

* Remove unused imports

* Remove unnecessary generator

* Refactor `if` expression

* fixed typo

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Update tests/test_audio.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-02-24 11:55:53 -06:00
JonnyWong16
c537db61cf
Factor out mixins image url tests 2021-02-14 21:19:42 -08:00
JonnyWong16
8478ae6e62
Add banner url to show tests 2021-02-14 19:03:19 -08:00
JonnyWong16
bbafaee1cf
Update art and thumb tests 2021-02-14 17:10:11 -08:00
JonnyWong16
00a20b2c92
Add banner mixin to show tests 2021-02-14 16:12:06 -08:00
JonnyWong16
427d90bd3b
Add mixins tests for all objects with art and posters 2021-02-14 15:59:57 -08:00
JonnyWong16
b960e2f7a5
Remove unmatch from base PlexObject 2021-02-14 15:08:49 -08:00
JonnyWong16
724e6696f8
Merge pull request #664 from JonnyWong16/feature/media_attributes
Add originalTitle attribute to show
2021-02-14 14:35:46 -08:00
JonnyWong16
f66624f2bd
Merge pull request #656 from JonnyWong16/feature/object_parent
Fix checking object parent when the weakref is dead
2021-02-14 14:34:54 -08:00
JonnyWong16
c585ec6bbf
Fix show originalTitle in test 2021-02-14 14:28:54 -08:00
JonnyWong16
10af1ce65d
Update test for show originalTitle attribute 2021-02-10 21:05:34 -08:00
JonnyWong16
15e9ad9f00
Merge branch 'master' into feature/object_parent 2021-02-07 14:46:30 -08:00
JonnyWong16
02c56841f0
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 10:46:20 -08:00
Steffen Fredriksen
3f7655e96e
Merge pull request #639 from pkkid/mixin
Move split/merge and unmatch/match to a mixin
2021-02-07 19:37:14 +01:00
Steffen Fredriksen
2be946c207
Merge pull request #657 from JonnyWong16/feature/hidden_season
Fix episode parentKey and parentRatingKey when seasons are hidden in Plex
2021-02-07 19:36:39 +01:00
JonnyWong16
a7e5763e78
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 09:33:15 -08:00
JonnyWong16
76fa9a9bf6
Merge remote-tracking branch 'upstream/master' into mixin 2021-02-07 09:29:54 -08:00
JonnyWong16
88e69d4664
Merge branch 'master' into feature/edit_tags 2021-02-06 20:27:34 -08:00
JonnyWong16
271f4840e6
Merge branch 'master' into feature/posters 2021-02-06 20:26:46 -08:00
JonnyWong16
28a8436dc0
Add test for episode attributes with hidden seasons 2021-02-04 19:03:29 -08:00
JonnyWong16
a7f5d16aee
Add test to check episode parent weakref 2021-02-04 18:16:53 -08:00
JonnyWong16
4a2086a798
Remove episode split test 2021-01-30 16:22:48 -08:00
JonnyWong16
ee28bef80f
Add support for the new Plex Movie agent (#628)
* guids collection to movie and GuidTag PlexObject

* Fix flake8

* Clean up GuidTag and Guid

* Add Plex Movie agent to add library doc string

* Change test bootstrap server movie library to Plex Movie

* Update tests for Plex Movie agent

* Mix movie genre test

Co-authored-by: andyloree <andy@andyloree.com>
2021-01-24 21:03:58 -05:00
JonnyWong16
c23d9635f5
Rename to mixins 2021-01-24 15:03:23 -08:00
JonnyWong16
1445be25eb
Merge branch 'master' into feature/posters 2021-01-24 14:51:11 -08:00
JonnyWong16
deda4e1b2b
Add mixin tag tests 2021-01-24 14:40:39 -08:00
JonnyWong16
a9a44a6a41
Fix related hubs (#642)
* Fix related hubs

* Update hub doc strings

* Add reload method for hubs

* Rename movie hub variable to match XML tag

* Add movie hubs test

* Fix hub test
2021-01-24 15:29:44 -05:00
blacktwin
4f0910ab79
Update to MediaPartStream and inheriting classes (#590)
* moving common child (VideoStream, AudioStream, SubtitleStream) attributes to the parent (MediaPartStream)

* removal of no longer present attribs in video, audio, subtitle streams

* additional attribs to video and mediapart streams

* removal of previously unique subtitleStream attribs. attribs are now common or no longer present.

* docstring cleanup of video, audio, and subtitle stream; pass 1

* remove codecID checks as this attribute is now longer used.

* adding key attrib to parent MediaPartStream.

* add transient to SubtitleStream, found in uploaded subtitles

* removing dialogNorm related assertion as this attrib has been removed.

* update Media class based on PR comments
optimizedVersion to be added, need SEARCHTYPES

* update MediaPartStream class based on PR comments

* update VideoStream class based on PR comments

* update AudioStream class based on PR comments

* update SubtitleStream class based on PR comments

* add LyricStream class based on PR comments

* add streamType int and LyricStream to MediaPartStream.parse method

* add MediaPart.lyricStreams method

* spelling correction

* more movement based on PR comments

* alpha ordering MediaPart

* alpha sort VideoStream

* docstring corrections

* remove assert stream.dialogNorm from audio test as dialogNorm has been removed.

* adding LyricStream to _buildStreams function

* adding changes from @johnnywong16
e346f0b4dc

* moving unused imports down and together

* Address docstring review comments

* Change isChildOf for any kwargs

* Add Media.isOptimizedVersion property

* Add photo and track specific attributes

* Remove dead MediaPartStream.parse method

* Update media doc strings

* Add optimized version doc string

* Cast video stream codedHeight and codedWidth to int

* Add required bandwidths to streams

* Update video tests

* Update audio tests

* Fix video tests

* Fix video tests

* Fix video tests

Co-authored-by: Jason Lawrence <jjlawren@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2021-01-24 15:21:56 -05:00
JonnyWong16
2263e94420
Add tests for posters and art 2021-01-24 11:47:15 -08:00
JonnyWong16
478bf9e083
Fix video season index test 2020-12-24 09:21:02 -08:00
JonnyWong16
9916297070
Fix tests 2020-12-23 23:12:50 -08:00
JonnyWong16
33b725d8d4
Update tests 2020-12-23 23:03:08 -08:00
Steffen Fredriksen
b623b43a58
Merge pull request #606 from JonnyWong16/bugfix/full_object
Fix Collections stuck as partial object after reloading
2020-11-23 07:47:10 +01:00
JonnyWong16
3684b52d48
Fix collection mode update test 2020-11-21 17:09:24 -08:00
JonnyWong16
82a9fce665
Add test for partial reload with disabled include 2020-11-21 13:21:13 -08:00
Jason Lawrence
576dc21992 Handle empty datetimes in tests 2020-10-08 15:15:43 -05:00
blacktwin
56b6138ca7
Merge branch 'master' into show_advanced_setting 2020-09-28 08:12:39 -04:00
blacktwin
620056a234 update test_video_Show_editAdvanced_default to use 1 str/text and 1 int/int based change 2020-07-28 11:18:14 -04:00
blacktwin
337ad9d88c correct assertion for default and value comparision. 2020-07-27 15:54:54 -04:00
blacktwin
7caee834da assert correction for defaulting show advanced settings 2020-06-18 09:56:21 -04:00
blacktwin
fa54430a54 add test for editing show advanced setting then defaulting back 2020-06-18 09:48:03 -04:00
blacktwin
e93d957b2b add test for show preferences 2020-06-18 09:47:22 -04:00
blacktwin
f5e2021bff add test for confirming edit and field locked on a movie and episode 2020-06-12 14:15:53 -04:00
Hellowlol
6138c709cd first pass on tools and tests 2020-05-12 23:26:29 +02:00
Steffen Fredriksen
226737807e
Merge pull request #472 from pkkid/matching_fix
matching_fix
2020-05-10 14:30:59 +02:00
blacktwin
f05866839f creation of test_video_Movie_match 2020-05-04 22:11:41 -04:00
Hellowlol
c5fc907339 add merge test 2020-05-02 00:06:29 +03:00
Hellowlol
c9052ef933 fix audio test
run black on some tests
2020-04-30 00:49:11 +03:00
Hellowlol
34c506107f update travis build
so we always test on the latest.
2020-04-16 23:51:18 +02:00
Hellowlol
e0d5a873e1 misc fixes 2020-04-16 00:30:00 +02:00
Hellowlol
6741be06c4 fix tests 2020-04-14 22:13:30 +02:00
blacktwin
0edca722db mark test as broken and skip.
provided reason as failing on some builds.
2020-03-06 08:55:15 -05:00
blacktwin
11ddd239d8 pausing conversion after creation to ensure job doesn't complete. 2020-02-17 17:35:07 -05:00
blacktwin
3acc72d0c3 add testing for optimizing videos
need sleep(1) to allow for conversion to go through.
2020-02-13 15:04:03 -05:00
Steffen Fredriksen
0a7b3ed3b3
Merge pull request #403 from zSeriesGuy/PlayHistory
Support history for specific ratingKeys
2019-11-28 23:15:36 +01:00
zSeriesGuy
43a60f00f1 Support history for specific ratingKeys
Add history method to PlexPartialObject
Add ratingKey to server history method.
Add tests for movie, show, season, episode, artist, album, and track history.
2019-11-14 12:21:49 -05:00
blacktwin
bd9e1db4dc
Merge branch 'master' into patch-8 2019-11-11 15:42:18 -05:00
blacktwin
9f71277530 Comment corrections
Test updated for function instead of attribute.
2019-10-12 14:49:18 -04:00
blacktwin
1b1ad02a53
correct subtitle test
remove call to removed function.
2019-10-12 14:08:27 -04:00
blacktwin
9416bcbfaf add poster check in test_video_Movie_attrs 2019-10-09 10:48:21 -04:00
blacktwin
10c10b1291
standalone exists test
test for validating reload provided expected results
2019-09-30 21:27:13 -04:00
blacktwin
6fd1b27aab
adding video checks
adding checks for newly added attributes.
2019-09-30 21:25:10 -04:00
blacktwin
b21d897d30
subtitle tests
test for episode subtitles
test for uploading, selecting, and removing a subtitle
2019-09-23 23:15:30 -04:00
Hellowlol
56ffd6ebcf zomg 2019-09-21 23:17:35 +02:00
Menushka Weeratunga
232fa31a0d Added test 2019-09-02 14:42:08 -04:00
Andrey Yantsen
c5e9333a3d try to stabilise test_video_Movie_attrs 2019-02-07 10:26:00 +00:00