Commit graph

24 commits

Author SHA1 Message Date
epenet
2cdc741900
Add type hints to integration tests (part 17) () 2023-02-15 11:14:04 +01:00
Robert Hillis
75e8a2ec77
Use platform enums in plex tests () 2021-12-22 07:59:54 -05:00
jjlawren
0600a21e02
Allow advanced Plex play_media search options () 2021-10-24 11:22:16 -10:00
Ville Skyttä
380cff167e
Use HTTPStatus in components/[nop]* () 2021-10-23 20:56:30 +02:00
jjlawren
0426b211f6
Rewrite Plex tests to use mocked payloads () 2021-01-07 19:56:52 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
jjlawren
f2f935506e
Use Plex websocket payloads to reduce overhead ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 19:00:13 +01:00
jjlawren
c63c253b7f
Discover Plex clients using GDM () 2020-10-14 15:46:52 +02:00
jjlawren
df9634a41f
Refactor Plex tests using fixtures ()
* Refactor Plex tests using fixtures

* Avoid unnecessary coroutine declaration
2020-09-22 22:14:41 -05:00
jjlawren
dd7f282723
Add new Plex movie lookup method for media_player.play_media () 2020-09-04 11:32:36 +02:00
jjlawren
1bc4de2bd3
Add tests for Plex media browser () 2020-08-26 23:24:44 +02:00
jjlawren
ec13eecc59
Update Plex tests to mock websockets ()
* Update Plex tests to mock websockets

* Avoid unnecessary class mock
2020-06-27 10:03:51 +02:00
jjlawren
40573bf393
Plex tests cleanup and additions () 2020-06-25 23:24:58 -07:00
jjlawren
fd1a8dd96c
Fix Plex when using local tokenless authentication () 2020-06-25 17:10:40 -07:00
jjlawren
d5cc3208af
Discover controllable Plex clients using plex.tv () 2020-06-17 12:04:47 -07:00
jjlawren
59c112a3f2
Decouple media lookup from Plex play_media service ()
* Decouple media lookup from play_media service

* More explicit input/search validation, cleanup, more tests

* Minor cleanup

* Normalize media_type string in lookup call

* Move key lookup, add tests via service calls

* Always allow play_media service calls

* No need to pass arguments to nested functions
2020-05-26 14:39:56 -05:00
jjlawren
ad419911bc
Add config option to ignore Plex Web clients () 2020-05-08 09:49:15 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Paulus Schoutsen
454c5d824a
Attempt to fix CI () 2020-04-28 10:31:22 -07:00
jjlawren
c582911879
Refactor Plex device/session updates () 2020-04-23 18:12:39 -07:00
jjlawren
42ca566e05
Improve Plex debounce/throttle logic ()
* Improve Plex debounce/throttle logic

* Use Debouncer helper, rewrite affected tests

* Mock storage so files aren't left behind

* Don't bother with wrapper method, store debouncer call during init

* Test cleanup from review

* Don't patch own code in tests
2020-04-10 00:49:09 +02:00
jjlawren
d3a4270312
Plex logging additions & cleanup () 2020-04-04 23:21:20 -07:00
jjlawren
42353282d4
Debounce calls to Plex server ()
* Debounce calls to Plex server

* Simplify debounce by recommendation

* Update tests to handle debounce

* Test debouncer, fix & optimize tests

* Use property instead
2020-04-03 22:34:42 -07:00
jjlawren
44c7743351
Rewrite and add Plex tests ()
* Rewrite and add Plex tests

* Remove unnecessary mocks

* Explicitly import constants for readability
2020-03-11 09:37:02 -07:00