epenet
3e9d25f81d
Add missing argument type hints to component tests ( #119671 )
2024-06-14 09:26:46 +02:00
epenet
a0c445764c
Ignore super-init-not-called pylint warnings in tests ( #119474 )
2024-06-12 17:54:38 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com >
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com >
2024-06-12 15:50:27 +02:00
J. Nick Koston
ee535ee611
Ensure test async_create_task eager start behavior matches production ( #115517 )
2024-04-13 15:58:52 -05:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com >
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-26 00:02:16 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
J. Nick Koston
5c60ff19e9
Migrate plex to use async_update_entry to alter config entries ( #110405 )
2024-02-12 21:38:38 +01:00
Joost Lekkerkerker
ef5d9d7377
Partly migrate Plex to has entity name ( #98841 )
...
* Partly migrate Plex to has entity name
* Use friendly name for device name
* Lowercase
2023-12-15 08:56:26 +01:00
jjlawren
a1d632c5d1
Bump plexapi to 4.15.3 ( #101088 )
...
* Bump plexapi to 4.15.3
* Update tests for updated account endpoint
* Update tests for updated resources endpoint
* Switch to non-web client fixture
* Set __qualname__ attribute for new library behavior
2023-09-29 23:04:00 -04:00
jjlawren
c88d4b09c9
Handle invalidated Plex token ( #91438 )
2023-04-17 09:38:16 +02:00
epenet
0c65af93af
Split reauth tests in plex ( #89212 )
2023-03-06 10:02:32 +01:00
epenet
ec0223f326
Cleanup plex config flow tests ( #88991 )
2023-03-05 05:38:26 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) ( #88163 )
2023-02-15 11:14:04 +01:00
jjlawren
9cd9d06bcc
Avoid network activity during Plex tests ( #72499 )
2022-05-27 09:46:22 +02:00
jjlawren
016f67b855
Retry on more Plex connection failures during startup ( #69822 )
2022-04-10 22:25:19 -07:00
jjlawren
1658d530e1
Add Plex scan_clients button, enable autoscan ( #67055 )
...
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com >
2022-02-22 16:34:48 -08:00
Ville Skyttä
380cff167e
Use HTTPStatus in components/[nop]* ( #58279 )
2021-10-23 20:56:30 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-10-07 12:58:00 +02:00
jjlawren
225732d00e
Remove I/O in Plex tests ( #53196 )
2021-07-19 18:50:04 +02:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* 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 ( #49525 )
2021-04-28 19:58:05 +02:00
jjlawren
425d56d024
Fix Plex showing removed shared users ( #46971 )
2021-02-23 23:36:46 +01:00
jjlawren
0426b211f6
Rewrite Plex tests to use mocked payloads ( #44044 )
2021-01-07 19:56:52 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
jjlawren
f2f935506e
Use Plex websocket payloads to reduce overhead ( #42332 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-12-02 19:00:13 +01:00
jjlawren
c63c253b7f
Discover Plex clients using GDM ( #39053 )
2020-10-14 15:46:52 +02:00
jjlawren
df9634a41f
Refactor Plex tests using fixtures ( #40260 )
...
* 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 ( #39287 )
2020-08-27 13:56:20 +02:00
jjlawren
ec13eecc59
Update Plex tests to mock websockets ( #37147 )
...
* 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 ( #37117 )
2020-06-25 23:24:58 -07:00
jjlawren
fd1a8dd96c
Fix Plex when using local tokenless authentication ( #37096 )
2020-06-25 17:10:40 -07:00
jjlawren
d5cc3208af
Discover controllable Plex clients using plex.tv ( #36857 )
2020-06-17 12:04:47 -07:00
jjlawren
9aac8482d5
Remove deprecated Plex YAML config ( #36388 )
2020-06-03 09:20:21 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
454c5d824a
Attempt to fix CI ( #34800 )
2020-04-28 10:31:22 -07:00
jjlawren
42ca566e05
Improve Plex debounce/throttle logic ( #33805 )
...
* 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 ( #33681 )
2020-04-04 23:21:20 -07:00
jjlawren
42353282d4
Debounce calls to Plex server ( #33560 )
...
* 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 ( #33230 )
...
* 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 ( #32633 )
...
* Rewrite and add Plex tests
* Remove unnecessary mocks
* Explicitly import constants for readability
2020-03-11 09:37:02 -07:00