Commit graph

29 commits

Author SHA1 Message Date
JonnyWong16
777ea754be
Add methods for accepting and cancelling friend invites (#849)
* Add accepting and cancelling friend invites

* Add mocked tests for acceptInvite and cancelInvite

* Rename methods to pendingInvite
2021-11-20 16:16:01 -08: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
aaa902059f
Update account onlineMediaSources optOut test 2021-06-06 17:23:49 -07:00
blacktwin
056b5cf342 flag onlineMediaSources required to be authenticated 2021-05-31 09:56:37 -04:00
blacktwin
ddbd07e571
Merge branch 'master' into reviews_extras 2021-01-18 15:53:40 -05:00
Hellowlol
f2e7e891cb Fix a test in navigation
keep compat for season(int)
2020-12-30 23:58:01 +01:00
JonnyWong16
9d23ec072e
Fix race condition in create MyPlexDevice from #620 (#625)
* Make test Plex Pass entitlements a subset

* Fix create MyPlexDevice race condition

* Rename to clientId to be consistent

* Move link method to MyPlexAccount
2020-12-15 22:41:04 -06:00
JonnyWong16
0411449a70
Cannot test myplex device with changing device name from parallel tests 2020-12-06 19:04:14 -08:00
blacktwin
d948669204 failing in the unclaimed server CI run 2020-10-07 11:27:58 -04:00
blacktwin
675cfd3f49 append original choice back in 2020-08-31 21:41:43 -04:00
blacktwin
2d08f2d179 add test for opting out of a onlineMediaSource 2020-08-30 02:20:30 -04:00
Hellowlol
c9052ef933 fix audio test
run black on some tests
2020-04-30 00:49:11 +03:00
Michael Shepanski
8bdd83164d Skip broken tests 2019-10-02 21:08:27 -04:00
blacktwin
05c21983cf
add test
add tests for creating and remove home users and inviting existing user to home and removing invite.
2019-09-14 21:03:18 -04: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
Hellowlol
891c32537d Fix some tests 2018-01-02 00:15:40 +01: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
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
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
7bb39aa05c UPdating tests to work on second install 2017-04-14 20:47:59 -04:00
Michael Shepanski
5443711b90 Make _query and _url public methods since we use it as such 2017-02-08 23:29:17 -05:00
Michael Shepanski
c072347593 MyPlex tests working (missed checkin) 2017-02-07 02:02:01 -05:00
Michael Shepanski
622c2490a0 Clean formatting 2017-02-01 23:47:22 -05:00
Michael Shepanski
45857f9fb7 Move pytests up to main tests folder; Move old tests to archived folder 2017-02-01 23:10:12 -05:00
Michael Shepanski
35ea5ae18a Much cleaner test layout; Move test config to config.ini 2017-01-08 23:40:39 -05:00