core/tests/helpers
Matthias Urlichs 0121e3cb04 Remove usage of "run_until_complete" (#16617)
* De-run_forever()-ization

* Use asyncio.run (or our own implementation on Python <3.7)
* hass.start is only used by tests
* setup_and_run_hass() is now async
* Add "main" async hass.run method
* move SIGINT handling to helpers/signal.py
  * add flag to .run to disable hass's signal handlers
* Teach async_start and async_stop to not step on each other
  (more than necessary)

* shorten over-long lines

* restore missing "import asyncio"

* move run_asyncio to homeassistant.util.async_

* LOGGER: warn => warning

* Add "force" flag to async_stop

only useful for testing

* Add 'attrs==18.2.0' to requirements_all.txt

Required for keeping requirements_test_all.txt in sync, where it is in
turn required to prevent auto-downgrading "attrs" during "pip install"

* Fixes for mypy

* Fix "mock_signal" fixture

* Revert mistaken edit

* Flake8 fixes

* mypy fixes

* pylint fix

* Revert adding attrs== to requirements_test*.txt

solved by using "pip -c"

* Rename "run" to "async_run", as per calling conventions
2018-09-19 15:40:02 +02:00
..
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_aiohttp_client.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_condition.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_config_entry_flow.py Add config entries to connection class (#16618) 2018-09-17 10:12:46 +02:00
test_config_validation.py Clean up input-datetime (#16000) 2018-08-16 22:17:14 +02:00
test_deprecation.py Add tests for deprecation helpers (#7452) 2017-05-06 10:10:48 -07:00
test_device_registry.py Clean up device update, add via-hub (#16659) 2018-09-17 13:39:30 +02:00
test_discovery.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
test_dispatcher.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_entity.py Add recent context (#15989) 2018-08-20 17:39:53 +02:00
test_entity_component.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_entity_platform.py Clean up device update, add via-hub (#16659) 2018-09-17 13:39:30 +02:00
test_entity_registry.py Clean up device update, add via-hub (#16659) 2018-09-17 13:39:30 +02:00
test_entity_values.py Simplify customize (#6007) 2017-02-15 19:47:30 -08:00
test_entityfilter.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_event.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_icon.py move icon battery function from util to helpers (#9708) 2017-10-05 20:55:19 -07:00
test_init.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_intent.py allow extra slot values in intents (#15246) 2018-07-01 11:51:40 -04:00
test_json.py Remove homeassistant.remote (#16099) 2018-08-21 15:49:58 +02:00
test_location.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_restore_state.py Unit tests to improve core coverage (#9659) 2017-10-02 20:25:04 -07:00
test_script.py Add context to scripts and automations (#16415) 2018-09-04 21:16:24 +02:00
test_service.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_state.py Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
test_storage.py Storage entity registry (#16018) 2018-08-18 13:34:33 +02:00
test_sun.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_temperature.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_template.py Deprecated stuff (#16019) 2018-08-20 16:34:18 +02:00
test_translation.py Custom component loading cleanup (#14211) 2018-05-01 20:57:30 +02:00