hass-core/tests
David Bonnes bb31fc1ec7
Test storage save and load for evohome (#122510)
* test storage save and load

* fix bug exposed by test

* refactor test

* add JSON for test account/location

* create helpers to load JSON

* refactor test

* baseline refactor

* tweak

* update requiremenst

* rationalise code

* remove conditional in test

* refactor test

* mypy fix

* tweak tests

* working test

* working test 4

* working test 5

* add typed dicts

* working dtms

* lint

* fix dtm asserts

* doc strings

* list

* tweak conditional

* tweak test data sets to extend coverage

* leverage conftest.py for subsequent tests

* revert test storage

* revert part two

* rename symbols

* remove anachronism

* stop unwanted DNS lookup

* Clean up type ignores

* Format

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-08-03 10:41:30 +02:00
..
auth Update import locations in tests (#122216) 2024-07-20 11:16:04 +02:00
components Test storage save and load for evohome (#122510) 2024-08-03 10:41:30 +02:00
fixtures
hassfest
helpers Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
non_packaged_scripts
pylint Add capsys to enforce-type-hints plugin (#120653) 2024-06-27 19:54:44 +02:00
resources
script
scripts Import Generator from collections.abc (1) (#120914) 2024-07-01 11:51:51 +02:00
snapshots Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_util Improve contextmanager typing (#122250) 2024-07-20 14:09:37 +02:00
testing_config
util Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
__init__.py
common.py Remove loop shutdown indicator when done with test hass (#122432) 2024-07-23 00:56:06 +02:00
conftest.py Verify respx mock routes are cleaned up when tests finish (#122852) 2024-07-30 17:12:58 +02:00
ignore_uncaught_exceptions.py
patch_recorder.py Fail tests if recorder creates nested sessions (#122579) 2024-07-25 21:18:55 +02:00
patch_time.py Improve tests/patch_time.py (#122017) 2024-07-16 14:22:22 +02:00
ruff.toml
syrupy.py Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_backports.py
test_block_async_io.py Enable ruff asyncio event loop blocking detection rules (#120799) 2024-07-04 04:17:57 -05:00
test_bootstrap.py Split recorder and frontend bootstrap steps (#122420) 2024-07-22 23:07:49 +02:00
test_circular_imports.py
test_config.py Use HOMEASSISTANT_DOMAIN alias for core DOMAIN in tests (#122762) 2024-07-29 12:51:12 +02:00
test_config_entries.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_const.py Fix missing type[..] annotation in tests (#122217) 2024-07-20 11:11:16 +02:00
test_core.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_data_entry_flow.py Section support for data entry flows (#118369) 2024-06-25 11:02:00 +02:00
test_exceptions.py
test_loader.py
test_main.py
test_requirements.py Remove recorder from websocket_api after dependencies (#122422) 2024-07-22 16:50:05 -05:00
test_runner.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_setup.py Do not raise repair issue about missing integration in safe mode (#123066) 2024-08-02 13:38:56 +02:00
test_test_fixtures.py
typing.py