hass-core/tests/helpers
Ties de Kock 4004867eda Split up yaml loaders into multiple files (#23774)
* Start moving parts of yaml utils to own module

Move parts of yaml loader out of the single large file and start
to create the structure of the yaml loaders in Ansible [0].

[0]: https://github.com/ansible/ansible/tree/devel/lib/ansible/parsing/yaml

* Finish yaml migration, update tests and mocks

  * Move code around to finish the migration
  * Update the mocks so that `open` is patched in
    `homeassistant.util.yaml.loader` instead of
    `homeassistant.util.yaml`.
  * Updated mypy ignores
  * Updated external API of `homeasistant.util.yaml`, see below:

Checked what part of the api of `homeassistant.util.yaml` was actually
called from outside the tests and added an `__ALL__` that contains only
these elements.

Updated the tests so that references to internal parts of the API (e.g.
the yaml module imported into `homeassistant.util.yaml.loader`) are
referenced directly from `homeassistant.util.yaml.loader`.

In `tests/test_yaml.py` the import `yaml` refers to
`homeassistant.util.yaml` and `yaml_loader` refers to `~.loader`.

Future work that remains for the next iteration is to create a custom
SafeConstructor and refers to that instead of monkey patching `yaml` with
custom loaders.

* Update mocks in yaml dumper, check_config
2019-05-09 09:07:56 -07:00
..
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_aiohttp_client.py No more opt-out auth (#18854) 2018-12-02 16:32:53 +01:00
test_area_registry.py Add update events to registries (#23746) 2019-05-07 20:04:57 -07:00
test_condition.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_config_entry_flow.py Further integration load cleanups (#23104) 2019-04-14 19:07:05 -07:00
test_config_validation.py Person schema for merge_packages #21307 (#21703) 2019-04-02 19:43:06 -07:00
test_deprecation.py Add tests for deprecation helpers (#7452) 2017-05-06 10:10:48 -07:00
test_device_registry.py Add update events to registries (#23746) 2019-05-07 20:04:57 -07:00
test_discovery.py Further integration load cleanups (#23104) 2019-04-14 19:07:05 -07:00
test_dispatcher.py Log exceptions thrown by signal callbacks (#20015) 2019-01-17 14:44:57 -08:00
test_entity.py Set default parallel_update value should base on async_update (#22149) 2019-03-25 23:53:36 -07:00
test_entity_component.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_entity_platform.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_entity_registry.py Split up yaml loaders into multiple files (#23774) 2019-05-09 09:07:56 -07:00
test_entity_values.py Simplify customize (#6007) 2017-02-15 19:47:30 -08:00
test_entityfilter.py Cloud conf (#18216) 2018-11-05 13:21:03 +01:00
test_event.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_icon.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_init.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_intent.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_json.py Remove homeassistant.remote (#16099) 2018-08-21 15:49:58 +02:00
test_location.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_restore_state.py Fix restore state crashing invalid entity ID (#20367) 2019-01-23 21:12:38 -08:00
test_script.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_service.py Fix supported features gates in media_player volume up/down services (#23419) 2019-04-25 21:42:39 -07:00
test_state.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_storage.py Restore states through a JSON store instead of recorder (#17270) 2018-11-28 13:16:43 +01:00
test_sun.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_system_info.py RFC: Add system health component (#20436) 2019-01-30 10:57:53 -08:00
test_temperature.py Migrate tests to pytest (#23544) 2019-04-30 09:20:38 -07:00
test_template.py render_with_collect method for template (#23283) 2019-05-01 10:54:25 +08:00
test_translation.py Convert translation helper to use async_get_integration (#23054) 2019-04-12 17:10:19 -07:00