Commit graph

33 commits

Author SHA1 Message Date
Andrey Yantsen
06742e87e8 run tests over unclaimed server 2018-09-15 21:44:39 +01: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
JonnyWong16
115a2c9ffd Use plexapi to retrieve a token in tools/plex-gettoken.py 2018-07-13 23:36:33 -07:00
Michelfrancis Bustillos
01644c6df8 Fix issue #272 (No authToken) and adding getToken program
Fix Issue with plex-download.py by adding authToken.

Add plex-gettoken.py as a simple way to get authToken. Useable as standalone or as part of a larger program with slight modification.
2018-07-13 10:08:15 -04:00
Michael Shepanski
34c98986ae Build in auto-delete is not working; I wrote my own 2018-06-23 16:49:56 -04:00
Hellowlol
c9d1e222a6 Merge branch 'master' into better_cli 2017-10-01 00:46:55 +02:00
Hellowlol
569e4d36fb fix naming, remove locale download 2017-10-01 00:34:20 +02:00
Michael Shepanski
874281828a Add alertlistener example 2017-09-27 10:28:08 -04:00
Hellowlol
f974ce5ad2 More cli work,
# todo movei this to cli inside plexapi and add a entrypoint to setup.py
2017-09-26 21:58:56 +02:00
Hellowlol
4f56b1ad6c init 2017-09-26 20:11:19 +02:00
Michael Shepanski
d7276e2e82 Add tqdm requirement; Display download status in plex-download 2017-08-14 23:40:28 -04:00
Michael Shepanski
1159edc422 Fix but in plex-markwatched script 2017-08-14 22:55:54 -04:00
Michael Shepanski
63dc1507d2 Add plex-download.py tool; Added new utility to request user/pass from user, config, or env for use when creating cmd line tools 2017-08-13 01:50:40 -04:00
Michael Shepanski
fe68c8f590 Prefix all tools with plex- allows us to add this directory to bin and still find them with tab complete 2017-08-12 21:35:13 -04:00
Michael Shepanski
56b6ec0e92 Add doc string 2017-06-04 22:26:17 -04:00
Michael Shepanski
c95e43fc10 Script to mark all items in markwatched collected as watched 2017-06-04 22:24:40 -04:00
Michael Shepanski
109d7367f6 Rename tools to follow naming pattern 2017-04-27 21:21:40 -04:00
Michael Shepanski
9cf46f0e23 Update listtokens script with better display and lists more devices 2017-04-27 21:19:59 -04:00
Hellowlol
70fce72f44 more dosc. 2017-03-03 23:32:16 +01:00
Michael Shepanski
35c69f65cb Be even more verbose 2017-02-25 00:23:20 -05:00
Michael Shepanski
00fe683a31 Be a bit more clear about what were doing 2017-02-25 00:17:53 -05:00
Michael Shepanski
56e8c565c5 Command line tool to get plex tokens 2017-02-25 00:12:24 -05:00
Michael Shepanski
5a9e0afbe2 Removing examples; We now test examples directly out of the README so its no need to duplicate them here anymore 2017-02-24 23:56:26 -05:00
Michael Shepanski
b35b265776 Better formatting for list settings 2017-02-24 23:14:52 -05:00
Michael Shepanski
07b3abc4c8 Document Settings; Cleanup style a bit 2017-02-24 11:18:54 -05:00
Michael Shepanski
c84a728d17 Track missing docs 2017-02-15 01:33:43 -05:00
Michael Shepanski
fc1c10e554 Finish documenting video 2017-02-13 14:38:40 -05:00
Michael Shepanski
ebf18ba020 Update fetchItem to search all subitems as well 2017-02-09 16:29:23 -05:00
Michael Shepanski
4624512356 A few more updates to get plexattrs.py fully running 2017-02-06 01:28:58 -05:00
Michael Shepanski
6a35f50a43 CHECKPOINT: Lots going on; Added new base class PlexObject that everything inherits from, this ensures all constructors are similar; Lots of work on new tool plexattrs that parses a full Plex library to find differences in attributes plexapi implements and what the Plex XML API offers up; Tests will most definetly be broken at this point, but I wanted to save my work. 2017-02-05 23:52:10 -05:00
Michael Shepanski
6e893d8fbf Started work on script to analyze Plex attributes with what we defined in plexapi so we can easily find mismatches 2017-02-04 03:08:47 -05:00
Michael Shepanski
35ea5ae18a Much cleaner test layout; Move test config to config.ini 2017-01-08 23:40:39 -05:00