core/tests
J. Nick Koston 4e6937d20f
Avoid multiple round trips to the database for history API calls (#91193)
* delete more code

* tweak

* tweak

* wrappers

* restore lost performance

* restore lost performance

* restore lost performance

* compact

* reduce

* fix refactor

* DRY

* tweak

* delete the start time state injector

* move away the legacy code

* tweak

* adjust

* adjust

* tweak

* ignore impossible

* fix a bug where the first start was changed to the start time when there was no previous history recorded before

* avoid the empty scan most cases

* postgresql

* fixes

* workaround for mariadb < 10.4

* remove unused

* remove unused

* adjust

* bail early

* tweak

* tweak

* fix more tests

* fix recorderrun being init in the future in the test

* run history tests on schema 30 as well

* Revert "run history tests on schema 30 as well"

This reverts commit d798b100ac.

* reduce

* cleanup

* tweak

* reduce

* prune

* adjust

* adjust

* adjust

* reverse later is faster because the index is in forward order and the data size we are reversing is much smaller even if we are in python code

* Revert "reverse later is faster because the index is in forward order and the data size we are reversing is much smaller even if we are in python code"

This reverts commit bf974e103e.

* fix test

* Revert "Revert "reverse later is faster because the index is in forward order and the data size we are reversing is much smaller even if we are in python code""

This reverts commit 119354499e.

* more coverage

* adjust

* fix for table order

* impossible for it to be missing

* remove some more legacy from the all states
2023-04-11 22:38:23 -04:00
..
auth Cache decode of JWT tokens (#90013) 2023-03-22 16:03:41 -10:00
backports
components Avoid multiple round trips to the database for history API calls (#91193) 2023-04-11 22:38:23 -04:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest
helpers Fix lingering timer in cloud (#90822) 2023-04-07 11:38:17 +02:00
pylint Remove incorrect ignore in pylint plugin (#90024) 2023-03-27 13:53:14 +02:00
resources
scripts Allow parameterizing YAML config in tests (#87981) 2023-02-20 16:57:12 +01:00
test_util
testing_config Rename custom_jinja to custom_templates (#90473) 2023-03-29 21:58:25 +02:00
util Add preferred wind speed unit to unit systems (#90504) 2023-03-30 12:54:12 +02:00
__init__.py
bandit.yaml
common.py Run pipeline from audio stream function (#90748) 2023-04-04 00:06:51 -04:00
conftest.py Rework MQTT config merging and adding defaults (#90529) 2023-04-04 18:12:18 +02:00
ignore_uncaught_exceptions.py
ruff.toml
syrupy.py Write protect entity options (#90185) 2023-03-28 22:56:51 +02:00
test_bootstrap.py Fix lingering timer in cloud (#90822) 2023-04-07 11:38:17 +02:00
test_config.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_config_entries.py Make abort_entries_match available in options flow (#90406) 2023-03-29 17:20:51 +02:00
test_core.py Fix lingering timer in cloud (#90822) 2023-04-07 11:38:17 +02:00
test_data_entry_flow.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_exceptions.py
test_loader.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_main.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_requirements.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_runner.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_setup.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_test_fixtures.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
typing.py