Commit graph

230 commits

Author SHA1 Message Date
Andrey Yantsen
c5e9333a3d try to stabilise test_video_Movie_attrs 2019-02-07 10:26:00 +00:00
Andrey Yantsen
e853f4eeee remove cpms from conftest.ENTITLEMENTS 2019-02-07 10:26:00 +00:00
David Roizenman
3719d4b599 Fix spelling of "original" 2019-01-07 08:04:53 -05:00
Michael Shepanski
7ef2e40607 Add Not Rated content rating 2018-12-04 15:45:14 -05:00
Hellowlol
b5027e8341 Merge branch 'smart' 2018-12-04 21:20:43 +01:00
Hellowlol
e6a6a1f7cc oops 2018-11-17 20:53:32 +01:00
Hellowlol
e5df09ca6c fix settings for py 2 2018-11-17 20:42:03 +01:00
Hellowlol
c5083c311c fix test.. 2018-11-17 00:33:56 +01:00
Hellowlol
e0796e2d9e add test for smart playlist 2018-11-17 00:20:21 +01:00
Michael Shepanski
d6b581e877 Fix bad test 2018-10-24 09:11:48 -04:00
Andrey Yantsen
06742e87e8 run tests over unclaimed server 2018-09-15 21:44:39 +01:00
Andrey Yantsen
4e2fa8254b fix utils test 2018-09-14 23:29:14 +01:00
Andrey Yantsen
12a318a8e2 Add a method to request a claim token (#287)
* add MyPlexAccount.claimToken()

* improve docstring for MyPlexAccount.claimToken()
2018-09-14 20:52:26 +02:00
Andrey Yantsen
68fc970d7a Improvements in tests process (#297)
* lets begin

* skip plexpass tests if there is not plexpass on account

* test new myplex attrubutes

* bootstrap: proper photos organisation

* fix rest of photos tests

* fix myplex new attributes test

* fix music bootstrap by setting agent to lastfm

* fix sync tests

* increase bootstrap timeout

* remove timeout from .travis.yml

* do not create playlist-style photoalbums in plex-bootstraptest.py

* allow negative filtering in LibrarySection.search()

* fix sync tests once again

* use sendCrashReports in test_settings

* fix test_settings

* fix test_video

* do not accept eula in bootstrap

* fix PlexServer.isLatest()

* add test against old version of PlexServer

* fix MyPlexAccount.OutOut

* add flag for one-time testing in Travis

* fix test_library onDeck tests

* fix more tests

* use tqdm in plex-bootstraptest for media scanning progress

* create sections one-by-one

* update docs on AlertListener for timeline entries

* fix plex-bootstraptest for server version 1.3.2

* display skip/xpass/xfail reasons

* fix tests on 1.3

* wait for music to be fully processed in plex-bootstraptest

* fix misplaced TEST_ACCOUNT_ONCE

* fix test_myplex_users, not sure if in proper-way

* add pytest-rerunfailures; mark test_myplex_optout as flaky

* fix comment

* Revert "add pytest-rerunfailures; mark test_myplex_optout as flaky"

This reverts commit 580e4c95a7.

* restart plex container on failure

* add conftest.wait_until() and used where some retries are required

* add more wait_until() usage in test_sync

* fix managed user search

* fix updating managed users in myplex

* allow to add new servers to existent users

* add new server to a shared user while bootstrapping

* add some docs on testing process

* perform few attemps when unable to get the claim token

* unlock websocket-client in requirements_dev

* fix docblock in tools/plex-teardowntest

* do not hardcode mediapart size in test_video

* remove cache:pip from travis

* Revert "unlock websocket-client in requirements_dev"

This reverts commit 0d536bd06d.

* remove debug from server.py

* improve webhook tests

* fix type() check to isinstance()

* remove excessive `else` branch due to Hellowlol advice

* add `unknown` as allowed `myPlexMappingState` in test_server
2018-09-14 20:03:23 +02:00
Andrey Yantsen
b6c061afd6 Bootstrap test plex (#290)
* fix markup in tests/conftest.py

* add plex-bootstraptest
2018-09-08 17:27:34 +02:00
Andrey Yantsen
54b26fdc25 Sync support (#282)
* [sync] initial commit

* fix populating of `state` field in sync.Status

* [connection] add posibliity to return first established connection faster

* [base] add timeout argument to PlexObject.fetchItems()

* [sync] add timeout arg to SyncItem.getMedia()

When you have multiple media within one SyncItem it takes a lot of time
to get all the info for this media (on my machine it takes about a
second for each movie).

* [sync] fix marking media as downloaded

* [sync] pass clientIdentifier to created SyncItem()

* [sync] override __repr__() for sync.Status

* fix after @mikes-nasuni`s review

* fix python2 compatibility

* get rid of sync.init()

* use list comprehension

* remove timeout from PlexObject.fetchItems()

* fix SyncItem under python 2.7

* fix __doc__ in sync module

* revert myplex._connect() back to it`s original state

* improve sync docs

* get rid of PlexObjects where not needed

* add X-Plex-Sync-Version=2 to headers

* add sync() method into Video, LibrarySection and MyPlexAccount

* add SyncItem.delete()

* add sync.Policy.create()

* use self._default_sync_title instead of _prettyfilename as default title

* let the tests begin

* add items for refreshing synclists to PlexServer

* fix sync tests

* sync for everybody!

* add TODO doctring for Audio._defaultSyncTitle()

* SyncItems tag may be presented only once, there is no need for loop

* add more TODO docstrings

* hello docs

* remove relative import

* remove unused variable from tests/test_sync.py
2018-09-08 17:25:16 +02:00
tijder
14c40e5fd8
Basic test 2018-05-14 20:12:29 +02:00
Hellowlol
faa8f42756 Add test. 2018-03-02 11:41:30 +01:00
Hellowlol
807d833ceb move update progress so we can use it on music. 2018-02-22 12:29:39 +01:00
Michael Shepanski
61ede66ad5 Dont include token in URLs unless show_secrets set in config; All functions that return a URL such as stream urls and thumbnails still include token 2018-01-04 21:44:35 -05:00
Hellowlol
891c32537d Fix some tests 2018-01-02 00:15:40 +01:00
Hellowlol
2eaddd0e64 disable more flaky stuff. 2017-11-08 22:52:29 +01:00
Hellowlol
1c2bd20f11 you flaky piece of shit
Got pwned by logging in to zhe test server.
2017-11-08 22:46:18 +01:00
Hellowlol
d3e4c63dd4 add url method, artUrl
change reload waning to debug.
2017-11-08 22:01:53 +01:00
Hellowlol
9e9244fcfb forgot one. 2017-11-01 23:18:35 +01:00
Hellowlol
0e2c7fb7e6 fixup
move delete to partial as not everything is deletable
fix library genre test
fix delete media.
2017-11-01 23:18:18 +01:00
Hellowlol
47e4c9d2b7 more tests 2017-10-29 01:29:58 +02:00
Hellowlol
baf655b88b add split, unmatch, stop, installupdate 2017-10-29 00:40:35 +02:00
Hellowlol
0cc573b477 change patch_http_call so we cant just pass it. 2017-10-29 00:07:06 +02:00
Hellowlol
0f16ea9cb7 fix invite and add editfriend. 2017-10-28 22:58:47 +02:00
Hellowlol
fba0824ddd fix damn typo 2017-10-27 01:18:21 +02:00
Hellowlol
368482fd11 add mocked invite user and remove users.
Maybe this shoud be a integration test too.
2017-10-27 01:09:17 +02:00
Hellowlol
0594f24f8b mock delete properly 2017-10-26 23:55:59 +02:00
Hellowlol
6735ecc123 more more 2017-10-26 00:51:25 +02:00
Hellowlol
389cc5a30a more cov 2017-10-25 23:43:23 +02:00
Hellowlol
d47d7931f5 Add some test for settings. TODO fix save. 2017-10-25 23:09:08 +02:00
Hellowlol
35dc558b3f Lets include sections. 2017-10-25 22:07:06 +02:00
Hellowlol
807b6ebc3c add more tests to inc cov. 2017-10-25 21:53:52 +02:00
Hellowlol
f8e594ff3f Add test for a album inside a album 👍 2017-10-25 20:58:20 +02:00
Michael Shepanski
d4763dcda9 Merge pull request #216 from pkkid/add_ne
add ne and ne test.
2017-10-13 21:09:10 -04:00
Hellowlol
b5a3018c6b add ne and ne test. 2017-10-14 01:46:09 +02:00
Hellowlol
284a3b615a More hidden stuff.. 2017-10-14 00:29:52 +02:00
Hellowlol
367929a97e fix another bug that was hidden 2017-10-14 00:02:21 +02:00
Hellowlol
e2a1ba992c remove player 2017-10-13 23:47:01 +02:00
Hellowlol
08c24fce0d add test for missing attr 2017-10-13 23:47:00 +02:00
Michael Shepanski
1121fdc1bb Comment out failing test. 2017-10-11 23:28:19 -04:00
Hellowlol
8910a307f9 Fix tests
Should we just remove the cache and require that the user reloads this?
or i can reload in the tests.
2017-10-09 15:57:37 +02:00
Michael Shepanski
9c1b81b161 Fix test 2017-09-29 19:37:49 -04:00
Hellowlol
1af004b7c0 One more 2017-08-18 23:06:59 +02:00
Hellowlol
72094fce40 More tests fixes 2017-08-18 21:44:40 +02:00
Michael Shepanski
943aa02e69 Rename playlist.share to playlist.copyToUser; Make plex.myPlexSubscription a bool; Fix a few tests with updated attrs; Skip test_copyToUser if no subscription 2017-08-11 15:14:32 -04:00
Michael Shepanski
7abd569bd7 Merge pull request #154 from pkkid/server_checks
add check_for_update, isLatest
2017-07-30 00:40:59 -04:00
Michael Shepanski
bc76208666 Merge pull request #152 from pkkid/shared_server
Shared server
2017-07-30 00:34:16 -04:00
Michael Shepanski
00bebde505 Merge pull request #151 from pkkid/eddit
Init edit.
2017-07-30 00:26:22 -04:00
Michael Shepanski
47968bbccf Fix tests 2017-07-30 00:24:30 -04:00
Hellowlol
a0f030e353 Add a test for share playlist. 2017-07-28 22:29:14 +02:00
Hellowlol
73c10abcce fix bug, add test add todo for images from meta data. 2017-07-27 00:55:31 +02:00
Hellowlol
498ac29106 add tests for islatest and check for update 2017-07-18 23:20:49 +02:00
Michael Shepanski
61f691fd7b No longer need username and password to run tests 2017-06-05 21:40:52 -04:00
Michael Shepanski
1315f4f3c3 Update test to call audioStreams() and videoStreams() as functions (not properties) 2017-05-13 16:17:06 -04:00
Michael Shepanski
1a175a74a0 Copy all client tests to pytest framework; Remove tests-old dir 2017-05-13 16:13:38 -04:00
Michael Shepanski
650a88d638 Started movinf client tests into Pytest framework 2017-05-12 23:25:57 -04:00
Michael Shepanski
ef8eb94bc5 Make another test xfail 2017-05-01 23:34:43 -04:00
Michael Shepanski
46608d789d Tweak two tests; Remove Python 3.5 testing since we cover both before and after already 2017-05-01 23:33:26 -04:00
Michael Shepanski
47e4e8b902 Updated tests to use open source video details 2017-05-01 23:26:27 -04:00
Michael Shepanski
6fef8d7ff5 Remove xfail for doc test 2017-04-29 23:37:25 -04:00
Michael Shepanski
948af75c92 Install python3-sphinx, not python2 2017-04-29 22:43:42 -04:00
Michael Shepanski
166e4a829c Be a bit nicer in test_server_alert_listener 2017-04-29 21:25:03 -04:00
Michael Shepanski
f5af8cdae3 Mark Alert thread class as daemon; Build docs directly from travis script (not a test) 2017-04-29 21:19:59 -04:00
Michael Shepanski
71b25c028d Mark building docs as xfail; Remove specialized build docs test 2017-04-29 02:36:37 -04:00
Michael Shepanski
6bb18843d7 Fix a few tests 2017-04-29 02:21:20 -04:00
Michael Shepanski
35fc7718f5 Tests now passing on personal server 2017-04-29 01:47:21 -04:00
Michael Shepanski
109d7367f6 Rename tools to follow naming pattern 2017-04-27 21:21:40 -04:00
Michael Shepanski
a5180b879f Use config to specify client and token; connect to PlexClient even if no token specified 2017-04-25 23:23:57 -04:00
Michael Shepanski
19039e1fed Cleanup client settings in pytest 2017-04-25 23:09:37 -04:00
Michael Shepanski
be2142f7ed Better logging when connecting to resources; Ability to specify timeout when connecting to resources; Update connect_to_resource test to be a bit more generic 2017-04-23 22:59:22 -04:00
Michael Shepanski
379b8ff63b Tests now pass for both test servers 2017-04-23 01:54:53 -04:00
Michael Shepanski
7ec909dce6 Finish generic tests; a few things to polish before merge 2017-04-23 01:18:53 -04:00
Michael Shepanski
2513eb0b6d Update test_utils 2017-04-17 23:32:08 -04:00
Michael Shepanski
29daf4c237 Update test_server 2017-04-16 23:33:33 -04:00
Michael Shepanski
5278d583bc Update test_playlist 2017-04-16 11:58:21 -04:00
Michael Shepanski
7bb39aa05c UPdating tests to work on second install 2017-04-14 20:47:59 -04:00
Michael Shepanski
fbbd3f0082 Merge pull request #139 from Hellowlol/lib_work
Lib work
2017-03-21 22:47:00 -04:00
Michael Shepanski
1dcbf85a9f Changes to myplex.py from code review; Update test_documentation to check for warnings and errors 2017-02-27 23:43:31 -05:00
Hellowlol
db3b729360 one step closer with the test. 2017-02-27 23:16:02 +01:00
Michael Shepanski
e87a7346c6 Fix test 2017-02-27 00:36:20 -05:00
Hellowlol
53fab6239a fix tests for download logs/dbs
fix clients. Clients now tries to get info from plex.tv resources in the
port is missing.
add quote_plus to compat
2017-02-26 22:47:40 +01:00
Hellowlol
baeedcebbf add download log/db. 2017-02-26 21:01:54 +01:00
Michael Shepanski
e66cc0a9c0 I was never happy with notifier being the name of the event listener. AlertListener is more boring, but also more clear what its doing. 2017-02-24 23:50:58 -05:00
Michael Shepanski
1bf09cb863 Convert README to rst to allow import into docs 2017-02-20 14:50:02 -05:00
Michael Shepanski
50af39c6f3 Test README examples 2017-02-20 02:10:45 -05:00
Michael Shepanski
1b549878ee Add missing imports 2017-02-19 23:21:37 -05:00
Michael Shepanski
a546db6fe7 Function name in camelCase ot match rest of code 2017-02-19 23:05:33 -05:00
Michael Shepanski
e48a66e00c Merge pull request #122 from Hellowlol/add_indexes
Add indexes. Closes https://github.com/pkkid/python-plexapi/issues/121
2017-02-19 22:57:06 -05:00
Michael Shepanski
228f049190 Pluralize function name; Its more clear more than one thing is being deleted 2017-02-19 22:51:17 -05:00
Michael Shepanski
601471c304 Merge branch '3.0.0' into pkkid/opt 2017-02-19 22:36:53 -05:00
Michael Shepanski
4b1a564409 All config options can be set with environment variables; Update all os.environ calls to use CONFIG.get; Finish documenting configuration options. 2017-02-19 22:18:23 -05:00
Hellowlol
0c0cefa27f tempfix test_build_documentation to the test can run on windows. 2017-02-19 00:57:07 +01:00
Hellowlol
558c6a0f41 Add tests for library and section deleteMediaPreview 2017-02-18 22:15:49 +01:00
Hellowlol
c7c04d2a42 Add indexes. Closes https://github.com/pkkid/python-plexapi/issues/121 2017-02-18 01:51:06 +01:00