Commit graph

44 commits

Author SHA1 Message Date
Hellowlol
c9052ef933 fix audio test
run black on some tests
2020-04-30 00:49:11 +03:00
jjlawren
70d93ad61e
Only test important client attributes (#458) 2020-04-16 21:14:15 -05:00
Hellowlol
34c506107f update travis build
so we always test on the latest.
2020-04-16 23:51:18 +02:00
Jason Lawrence
06e6386ea3 Minor test fixes 2020-04-16 12:07:40 -05:00
Steffen Fredriksen
0da9e3994a
Merge pull request #451 from jjlawren/raise_notfound
Raise NotFound on 404 errors
2020-04-16 14:41:14 +02:00
Jason Lawrence
049791c5cf Add server NotFound test 2020-04-15 22:07:53 -05: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
ec8491c2e1 update test
check server current allowMediaDeletion
test for redundant toggles
2020-02-26 08:57:42 -05:00
blacktwin
8f96c34eac add test for checking _allowMediaDeletion method. 2020-02-25 16:40:15 -05:00
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
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
baf655b88b add split, unmatch, stop, installupdate 2017-10-29 00:40:35 +02:00
Hellowlol
6735ecc123 more more 2017-10-26 00:51:25 +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
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
Hellowlol
498ac29106 add tests for islatest and check for update 2017-07-18 23:20:49 +02:00
Michael Shepanski
650a88d638 Started movinf client tests into Pytest framework 2017-05-12 23:25:57 -04:00
Michael Shepanski
47e4e8b902 Updated tests to use open source video details 2017-05-01 23:26:27 -04:00
Michael Shepanski
166e4a829c Be a bit nicer in test_server_alert_listener 2017-04-29 21:25:03 -04:00
Michael Shepanski
35fc7718f5 Tests now passing on personal server 2017-04-29 01:47:21 -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
29daf4c237 Update test_server 2017-04-16 23:33:33 -04: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
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
5e18776ee2 add support to shuffle to createplayqueue and playlist.playqueue
See the tests for examples.
2017-02-14 22:12:56 +01:00
Michael Shepanski
a692fbcd6f Merge branch '3.0.0' into add_delete 2017-02-11 11:46:49 -05:00
Hellowlol
54faa30d2d fix my fix of my bug... comment out server updatedat. 2017-02-11 11:09:35 +01:00
Michael Shepanski
3783f3c61b Add missing requirement for dev. Document that you need websocket-client installed in order to use PlexNotifier 2017-02-10 23:26:09 -05:00
Michael Shepanski
6b1ae844c5 Add PlexNotifier class; Ability to monitor plex notifications (current scan progress, transcode session updates, etc) 2017-02-10 23:08:36 -05: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
f676d4cbbf Most tests passing; Need to add better filters on fetchItems for watched / unwatched 2017-02-08 02:00:43 -05:00
Michael Shepanski
fcc1248a9b Fix private variable names in tests 2017-02-07 02:14:49 -05:00
Michael Shepanski
a2cdc97453 Fix tests; comment out a few that were breaking because of timezone aware datetimes; Perhaps converting datetimes to timestamps then comparing the int values will be more reliable. 2017-02-03 11:39:46 -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
Renamed from tests/tests_pytest/test_server.py (Browse further)