core/tests/helpers
Michael Arthur d8549409f7
Area units and conversion between metric and US (#123563)
* area conversions

* start work on tests

* add number device class

* update unit conversions to utilise distance constants

* add area unit

* update test unit system

* update device condition and trigger

* update statistic unit converters

* further tests work WIP

* update test unit system

* add missing string translations

* fix websocket tests

* add deprecated notice

* add more missing strings and missing initialisation of unit system

* adjust icon and remove strings from scrape and random

* Fix acre to meters conversion

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Tidy up valid units

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* fix ordering of area

* update order alphabetically

* fix broken test

* update test_init

* Update homeassistant/const.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* remove deprecated unit and fix alphabetical order

* change deprecation and add tests, change to millimeter conversion for inches

* fix order

* re-order defs alphabetically

* add measurement as well

* update icons

* fix up Deprecation of area square meters

* Update core integrations to UnitOfArea

* update test recorder tests

* unit system tests in alphabetical

* update snapshot

* rebuild

* revert alphabetization of functions

* other revert of alphabetical order

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-11-21 16:10:44 +01:00
..
snapshots Minor improvement of entity platform tests (#128158) 2024-10-11 14:14:29 +02:00
__init__.py
test_aiohttp_client.py Add ability to set HA breaking version in report_usage (#130858) 2024-11-20 21:41:57 +01:00
test_area_registry.py Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
test_category_registry.py Add created_at/modified_at to category registry (#122454) 2024-07-23 14:39:38 +02:00
test_check_config.py Add missing platforms_exist guard to check_config (#114600) 2024-04-01 21:37:30 -04:00
test_collection.py Update modified_at datetime on storage collection changes (#125218) 2024-09-04 15:05:51 +02:00
test_condition.py Use service_calls fixture in helper tests (#119275) 2024-06-10 14:57:34 +02:00
test_config_entry_flow.py Move core config functionality to its own module (#129065) 2024-10-24 13:34:51 +02:00
test_config_entry_oauth2_flow.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_config_validation.py Improve trigger schema validation to ask for `trigger` instead of `platform` (#126750) 2024-09-25 16:44:14 +02:00
test_debounce.py Enable all TID ruff rules (#126312) 2024-09-20 12:25:51 +02:00
test_deprecation.py Move core config class to core_config.py (#129163) 2024-10-26 07:00:31 +02:00
test_device.py Address device helper review comments (#120615) 2024-06-27 08:50:20 +02:00
test_device_registry.py Minor improvement of device registry tests (#128095) 2024-10-10 17:28:57 +02:00
test_discovery.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_discovery_flow.py Add FlowManager.async_has_matching_flow (#126804) 2024-09-27 10:51:36 +02:00
test_dispatcher.py Update string formatting to use f-string on tests (#125986) 2024-09-19 10:32:38 +02:00
test_entity.py Improve entity cached attributes (#128876) 2024-10-21 10:29:01 +02:00
test_entity_component.py Don't raise when registering entity service with invalid schema (#125057) 2024-09-02 14:20:50 +02:00
test_entity_platform.py Minor improvement of entity platform tests (#128158) 2024-10-11 14:14:29 +02:00
test_entity_registry.py Improve entity registry test coverage (#128073) 2024-10-10 21:16:39 +02:00
test_entity_values.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_entityfilter.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_event.py Add ability to set HA breaking version in report_usage (#130858) 2024-11-20 21:41:57 +01:00
test_floor_registry.py Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
test_frame.py Add ability to pass integration domain to report_usage (#130705) 2024-11-21 16:01:36 +01:00
test_group.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
test_httpx_client.py Add ability to set HA breaking version in report_usage (#130858) 2024-11-20 21:41:57 +01:00
test_icon.py Update string formatting to use f-string on tests (#125986) 2024-09-19 10:32:38 +02:00
test_importlib.py Adjust importlib helper to avoid leaking memory on re-raise (#115377) 2024-04-10 15:19:17 -10:00
test_instance_id.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_integration_platform.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_intent.py Improve LLM tool quality by more clearly specifying device_class slots (#122723) 2024-07-31 14:36:02 +02:00
test_issue_registry.py Adjust thread safety check messages to point to developer docs (#117392) 2024-05-14 15:20:31 +02:00
test_json.py Cache serialization of config entry storage (#127435) 2024-10-03 19:51:09 +02:00
test_label_registry.py Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
test_llm.py Expose scripts with no fields as entities (#123061) 2024-10-22 23:14:07 -07:00
test_location.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_network.py Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper (#127228) 2024-10-30 12:43:41 +01:00
test_normalized_name_base_registry.py Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
test_ratelimit.py Refactor rate limit helper to track time in seconds (#113898) 2024-03-20 19:49:37 -04:00
test_recorder.py Indicate database migration in /api/core/state response (#122445) 2024-07-23 14:13:08 +02:00
test_redact.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_registry.py Unignore Ruff PLR in tests (#114470) 2024-04-01 11:11:59 +02:00
test_reload.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_restore_state.py Drop restore_state backwards compatibility (#130411) 2024-11-15 12:35:09 +01:00
test_schema_config_entry_flow.py Drop initialize_options helper from OptionsFlow (#129870) 2024-11-05 12:02:33 +01:00
test_script.py Add `completed` to the wait variable when using triggers (`wait_for_trigger`) (#123427) 2024-10-23 17:19:07 +02:00
test_script_variables.py Update import locations in tests (#122216) 2024-07-20 11:16:04 +02:00
test_selector.py Change trigger platform key to trigger (#124357) 2024-09-25 14:19:58 +02:00
test_service.py Fix service target devices by label (#127229) 2024-10-25 21:30:04 +02:00
test_significant_change.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_singleton.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_start.py Add missing hass type in tests/helpers (#124039) 2024-08-16 17:09:12 +02:00
test_state.py Change lock state to an enum (#126379) 2024-09-24 12:30:50 +02:00
test_storage.py Improve type hints in core helper tests (#120096) 2024-06-21 15:43:27 +02:00
test_storage_remove.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_sun.py Fix import-outside-toplevel pylint warnings in core tests (#119394) 2024-06-11 16:10:34 +02:00
test_system_info.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_temperature.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_template.py Area units and conversion between metric and US (#123563) 2024-11-21 16:10:44 +01:00
test_translation.py Add unit translations for github integration (#130538) 2024-11-20 18:43:17 +01:00
test_trigger.py Update trigger validation message (#126749) 2024-09-25 15:33:03 +02:00
test_trigger_template_entity.py Move manual trigger entity tests (#130134) 2024-11-10 12:14:13 +01:00
test_typing.py Deprecated old backports and typing aliases (#114883) 2024-04-06 13:15:30 -10:00
test_update_coordinator.py Add ability to set HA breaking version in report_usage (#130858) 2024-11-20 21:41:57 +01:00