hass-core/tests
alim4r 7d256f56c5
Refactor Prometheus tests (#60451)
* Removed prometheus from .coveragerc

* Update prometheus tests with handler categories

* Updated prometheus metrics to use the current registry
- don't use the registry created on import (needed for tests)

* Reset the prometheus CollectorRegistry before every test

* Update prometheus metrics generation
- Use latest registry when generating a response

* Add default collectors when resetting the registry

* Move entities to the specific prometheus test case

* Refactor body generation for prometheus tests

* Add test case for sensors without unit after rebase

* Fix prometheus tests
- Wait for events in prometheus tests
- Add workaround for demo platform dependecy conversation (aiohttp frozen router)

* Added prometheus tests for attribute metrics

* Added prometheus tests for binary_sensor

* Add prometheus test for input_boolean

* Add prometheus test for lights

* Add prometheus test for lock

* Add prometheus test for sensor fahrenheit conversion

* Fix prometheus test for input_number
2021-12-08 20:18:21 +01:00
..
auth Add local only users (#57598) 2021-11-29 14:01:03 -08:00
backports Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880) 2021-12-03 09:31:17 +01:00
components Refactor Prometheus tests (#60451) 2021-12-08 20:18:21 +01:00
fixtures Fix regression after merging fixtures with old path (#59187) 2021-11-05 21:10:55 +01:00
hassfest Fix issue with ranges in requirements with hassfest (#59470) 2021-11-12 09:39:30 +01:00
helpers Fix flaky tests around frame helper (#61179) 2021-12-08 10:50:56 +01:00
mock
resources
scripts Allow IntegrationNotFound when checking config in safe mode (#56283) 2021-09-17 22:25:50 -07:00
test_util Use HTTPStatus instead of HTTP_* constants in various test mocks (#56543) 2021-10-01 15:52:45 -07:00
testing_config Add native unit types for weather entities (#59533) 2021-11-29 14:44:44 +01:00
util Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880) 2021-12-03 09:31:17 +01:00
__init__.py
bandit.yaml
common.py Allow to lock SQLite database during backup (#60874) 2021-12-07 13:16:24 +01:00
conftest.py Bump zeroconf to 0.37.0 (#59932) 2021-11-18 20:23:20 -08:00
ignore_uncaught_exceptions.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_bootstrap.py Report integrations that block startup wrap up (#56003) 2021-09-09 20:39:22 -07:00
test_config.py Add minor version support to storage.Store (#59882) 2021-11-18 17:15:40 +01:00
test_config_entries.py Use dataclass for HassioServiceInfo (#60824) 2021-12-03 14:05:56 +01:00
test_core.py Fix external internal url core check (#54310) 2021-08-09 10:52:14 +02:00
test_data_entry_flow.py Index in-progress flows to avoid linear search (#58146) 2021-10-22 07:19:49 -10:00
test_exceptions.py
test_loader.py Ensure domain is correct format (#58429) 2021-10-25 15:56:07 -07:00
test_main.py
test_requirements.py Avoid checking if a package is installed if it already failed (#56698) 2021-09-26 22:32:25 -07:00
test_runner.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_setup.py
test_test_fixtures.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00