epenet
9bcc31a9fe
Use start_reauth helper method in integration tests (s) ( #124793 )
2024-08-28 16:49:05 +02:00
Marc Mueller
f11b316dac
Import Generator from collections.abc (4) ( #120917 )
2024-07-01 11:54:42 +02:00
Marc Mueller
274cd41d57
Fix Generator annotations in tests (1) ( #119018 )
2024-06-07 08:43:32 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) ( #118992 )
2024-06-06 17:41:37 +02:00
epenet
20b5aa3e0e
Move entity_registry_enabled_by_default to decorator [q-z] ( #118793 )
2024-06-04 13:38:32 +02:00
epenet
e58d060f82
Use registry fixtures in tests (s) ( #118295 )
2024-05-28 15:41:03 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
J. Nick Koston
88f04bb3b4
Avoid calling entry.async_migrate in sonarr tests ( #113557 )
...
We should setup the the config entry instead of calling the
migrator directly
This fix was reverted out in #113553
2024-03-15 23:33:48 +01:00
G Johansson
e8de1a7031
Revert "Avoid pre-importing config_flows if the integration does not … ( #113553 )
...
Revert "Avoid pre-importing config_flows if the integration does not support …"
This reverts commit 9940f51b95
.
2024-03-15 23:15:36 +01:00
J. Nick Koston
9940f51b95
Avoid pre-importing config_flows if the integration does not support migration ( #113369 )
...
* Avoid pre-importing config_flows if the integration does support migration
Currently we pre-import the config flow module if it exists since
setting up the config entry required comparing the versions found
in the config_flow.py. We can avoid the pre-import if the integration
does not support async_migrate_entry which means we avoid loading
many config flows in memory at startup.
* cover
* fix missing block
* do not call directly
* its too fast now, the test gets more along
* Update homeassistant/loader.py
2024-03-14 00:13:40 -04:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Joost Lekkerkerker
f368457544
Add icon translations to Sonarr ( #112233 )
2024-03-06 16:05:35 +01:00
J. Nick Koston
bb9ffa758d
Ensure sonarr tests add config entry before updating it ( #110422 )
2024-02-12 15:30:01 -06:00
Jan-Philipp Benecke
47819bde4f
Migrate sonarr tests to use freezegun ( #105410 )
2023-12-11 10:47:51 +01:00
epenet
69a46d4002
Adjust pylint plugin for components fixtures ( #90217 )
...
* Adjust pylint plugin for components fixtures
* Adjust components
* Use MagicMock
* Adjust
* Use None
2023-03-26 15:21:19 +02:00
epenet
3a9adacdde
Add type hints to integration tests (part 20) ( #88179 )
2023-02-15 15:23:34 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Michael
9709391b52
Replace the usage of unit constants by enumerations in Tests [s-u] ( #85937 )
2023-01-16 09:00:27 +01:00
Robert Hillis
87a22fbcca
Move Sonarr API calls to coordinators ( #79826 )
2022-10-08 00:25:16 +02:00
epenet
e9f55f4e54
Apply hass-relative-import to tests (s-z) ( #78733 )
2022-09-19 09:51:31 +02:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
Chris Talkington
f4c443ac86
Use fixture for enabling entities in Sonarr tests ( #68177 )
2022-03-29 17:04:13 -10:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ( #68330 )
...
* Simplify timezone setting in tests
* Fix typo
* Adjust caldav tests
* Adjust input_datetime tests
* Adjust time_date tests
* Adjust tod tests
* Adjust helper tests
* Adjust recorder tests
* Adjust risco tests
* Adjust aemet tests
* Adjust flux tests
* Adjust forecast_solar tests
* Revert unnecessary change in forecast_solar test
* Adjust climacell tests
* Adjust google tests
* Adjust sensor tests
* Adjust sonarr tests
* Adjust template tests
* Adjust zodiac tests
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 10:25:15 +01:00
Chris Talkington
f30681dae7
Use aiopyarr for sonarr ( #65349 )
2022-02-22 09:33:10 -08:00
Chris Talkington
f05caf451e
Small cleanup of sonarr sensor platform ( #65962 )
2022-02-07 09:53:23 +01:00
Chris Talkington
70da08499a
Refactor sonarr tests ( #64886 )
2022-01-31 16:59:18 -06:00
Franck Nijhof
9e33a3014c
Automatically add entry title as name placeholder in reauth ( #64078 )
2022-01-18 14:18:16 -08:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Ville Skyttä
50e0c58310
Use http.HTTPStatus in components/s* ( #58291 )
2021-10-23 20:49:04 +02:00
Chris Talkington
819fd811af
Fix reauth for sonarr ( #55329 )
...
* fix reauth for sonarr
* Update config_flow.py
* Update config_flow.py
* Update config_flow.py
* Update test_config_flow.py
* Update config_flow.py
* Update test_config_flow.py
* Update config_flow.py
2021-08-27 11:04:07 -05:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests ( #51059 )
2021-05-25 11:52:20 +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
Ville Skyttä
a396619251
Use disabled_by constants ( #49584 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
jan iversen
2e084f260e
Rename HomeAssistantType —> HomeAssistant, integrations s* - t* ( #49550 )
2021-04-22 16:21:38 +02:00
Franck Nijhof
7264c95217
Clean up superfluous integration setup - part 6 ( #49298 )
2021-04-16 09:23:27 -07:00
J. Nick Koston
4cd7f9bd8b
Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth ( #48962 )
2021-04-09 19:41:29 -10:00
Erik Montnemery
ba2978c693
Update tests p-s to use async_get() instead of async_get_registry() ( #47654 )
2021-03-09 14:28:32 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Chris Talkington
243a4e5df6
Remove deprecated YAML config from sonarr ( #41904 )
2020-10-16 13:43:35 +02:00
Chris Talkington
432133a12a
Add ability to reauth sonarr ( #40306 )
...
* add ability to reauth sonarr
* Update config_flow.py
* work on reauth
* Update test_init.py
* Update config_flow.py
* Update strings.json
* Update test_config_flow.py
* Update strings.json
* Update test_config_flow.py
* Update __init__.py
* Update __init__.py
* Update config_flow.py
* Update strings.json
* Update config_flow.py
* Update __init__.py
* Update test_config_flow.py
* Update test_config_flow.py
* Update strings.json
* Update test_config_flow.py
* Update config_flow.py
* Update test_config_flow.py
* Update config_flow.py
* Update strings.json
* Update config_flow.py
* Update test_config_flow.py
* Update test_config_flow.py
2020-09-28 20:15:59 -05:00
springstan
6a7caad8dc
Use content type json constant ( #40312 )
2020-09-23 20:21:55 +02:00
Chris Talkington
c1b8497aaa
Improve sonarr sensor test ( #39623 )
...
* improve sonarr sensor test
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
2020-09-03 15:32:48 -05:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Chris Talkington
da5dc1130e
Fix slower tests in sonarr ( #39073 )
2020-08-20 12:21:58 +02:00
J. Nick Koston
76b956a969
Mock setup in sonarr config flow tests ( #37432 )
2020-07-03 16:20:17 -05:00
Paulus Schoutsen
86582ad1ba
Fix lint on sonarr
2020-05-29 17:32:14 -07:00