hass-core/tests
J. Nick Koston aebe4c66a6
Fix cpu thrashing during purge after all legacy events were removed (#89923)
* Fix cpu thrashing during purge after all legacy events were removed

We now remove the the index of of event ids on the states table when its
all NULLs to save space. The purge path needs to avoid checking for legacy
rows to purge if the index has been removed since it will result in a full
table scan each purge cycle that will always find no legacy rows to purge

* one more place

* drop the key constraint as well

* fixes

* more sqlite
2023-03-19 22:04:24 -04:00
..
auth Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
backports
components Fix cpu thrashing during purge after all legacy events were removed (#89923) 2023-03-19 22:04:24 -04:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
helpers Fix lingering timer in config entry flow tests (#89853) 2023-03-19 08:56:24 +01:00
pylint Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
resources
scripts Allow parameterizing YAML config in tests (#87981) 2023-02-20 16:57:12 +01:00
test_util Adjust json imports in tests (#88248) 2023-02-17 19:13:48 +01:00
testing_config Add an in-memory-preloading loader for Jinja imports (#88850) 2023-03-13 11:00:05 +01:00
util Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
__init__.py
bandit.yaml
common.py Ensure MockEntityPlatform shuts down after tests (#89849) 2023-03-17 10:22:43 +01:00
conftest.py Cleanup get_local_ip in global conftest (#89826) 2023-03-16 22:03:06 +01:00
ignore_uncaught_exceptions.py
ruff.toml Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
syrupy.py Update entity registry snapshot serializer (#88566) 2023-02-21 22:37:13 +01:00
test_bootstrap.py Fix lingering timer in bootstrap tests (#89790) 2023-03-16 17:20:27 -04: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 Add type hints to root tests (#89785) 2023-03-16 11:08:47 +01:00
test_core.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01: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 Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
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 Add MockHAClientWebSocket test helper (#87832) 2023-02-10 10:23:26 -05:00