Move fixtures part 1 (#58902)

This commit is contained in:
Paulus Schoutsen 2021-11-01 20:47:05 -07:00 committed by GitHub
parent 0a94badb72
commit 31153ac155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
561 changed files with 188 additions and 991 deletions

View file

@ -0,0 +1,6 @@
cover:
- platform: command_line
covers:
from_yaml:
command_state: "echo closed"
value_template: "{{ value }}"

View file

@ -18,7 +18,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant
import homeassistant.util.dt as dt_util
from tests.common import async_fire_time_changed
from tests.common import async_fire_time_changed, get_fixture_path
async def setup_test_entity(hass: HomeAssistant, config_dict: dict[str, Any]) -> None:
@ -133,11 +133,7 @@ async def test_reload(hass: HomeAssistant) -> None:
assert entity_state
assert entity_state.state == "unknown"
yaml_path = os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
"fixtures",
"command_line/configuration.yaml",
)
yaml_path = get_fixture_path("configuration.yaml", "command_line")
with patch.object(hass_config, "YAML_CONFIG_FILE", yaml_path):
await hass.services.async_call(
"command_line",