hass-core/tests/helpers
David Poll 7284af6a3e
Add an in-memory-preloading loader for Jinja imports (#88850)
* Adds a loader to enable jinja imports.

* Switch to in-memory

* Move loading custom_jinja off of the event loop

* Raise TemplateNotFound if template doesn't exist

* Fix docstring

* Adds a service to reload custom jinja

* Remove IO from test setup

* Improve coverage and small refactor

* Incorporate feedback and use .jinja extension

* Check the loaded sources in test.

* Incorporate PR feedback.

* Update homeassistant/helpers/template.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-13 11:00:05 +01:00
..
__init__.py
test_aiohttp_client.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_aiohttp_compat.py Restore original aiohttp cancelation behavior (#88046) 2023-02-13 22:00:36 -06:00
test_area_registry.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_check_config.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_collection.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_condition.py Support templating for in state conditions (#88411) 2023-02-20 18:57:00 +01:00
test_config_entry_flow.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_config_entry_oauth2_flow.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_config_validation.py Pass hass instance when validating templates (#89242) 2023-03-08 11:28:53 -05:00
test_debounce.py Fix lingering task in debounce tests (#89019) 2023-03-02 13:01:50 -05:00
test_deprecation.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_device_registry.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_discovery.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_discovery_flow.py Prevent new discovery flows from being created when stopping (#88743) 2023-02-25 12:02:07 +01:00
test_dispatcher.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_entity.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_entity_component.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_entity_platform.py Fix lingering task in entity_platform test (#88957) 2023-03-01 10:49:13 +01:00
test_entity_registry.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_entity_values.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_entityfilter.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_event.py Avoid falling back to listening for all states when a template render raises an exception (#89392) 2023-03-08 15:50:34 -05:00
test_frame.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_httpx_client.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_icon.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_init.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_instance_id.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_integration_platform.py Migrate integration_platform helper to use async_get_integrations (#89303) 2023-03-08 16:01:47 -05:00
test_intent.py Adjust entity registry access in helper tests (#88965) 2023-03-01 16:24:31 +01:00
test_issue_registry.py Adjust issue_registry imports (#88878) 2023-02-28 21:55:44 -05:00
test_json.py Refactor json tests to align with new code (#88247) 2023-02-16 21:34:19 +01:00
test_location.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_network.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_ratelimit.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_recorder.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_reload.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_restore_state.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_schema_config_entry_flow.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_script.py Allow conditions to be implemented in platforms (#88509) 2023-02-23 22:30:51 -05:00
test_script_variables.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_selector.py Add filter options to entity and device selectors (#87536) 2023-02-27 10:38:18 -05:00
test_service.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_significant_change.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_singleton.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_start.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_state.py Add more type hints to conftest.py (#87842) 2023-02-11 13:48:53 +01:00
test_storage.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_storage_remove.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_sun.py Add typing to tests with single hass argument (#87631) 2023-02-07 15:01:16 +01:00
test_system_info.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_temperature.py Add typing to tests with single hass argument (#87631) 2023-02-07 15:01:16 +01:00
test_template.py Add an in-memory-preloading loader for Jinja imports (#88850) 2023-03-13 11:00:05 +01:00
test_translation.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_trigger.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_update_coordinator.py Fix missing debouncer cancel in update coordinator (#89383) 2023-03-09 15:16:52 -05:00