Commit graph

21 commits

Author SHA1 Message Date
Ville Skyttä
19d25cd901
Change config entry state to an enum ()
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
jjlawren
8c311cbaa0
Handle special Plex library sections () 2021-04-28 19:58:05 +02:00
jjlawren
425d56d024
Fix Plex showing removed shared users () 2021-02-23 23:36:46 +01: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
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +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
9aac8482d5
Remove deprecated Plex YAML config () 2020-06-03 09:20:21 -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
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
312af53935
Handle Plex certificate updates ()
* Handle Plex certificate updates

* Use exception in place

* Add test
2020-03-28 21:02:29 -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