mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Move uk_transport fixture to integration test (#112995)
This commit is contained in:
parent
65e1502b50
commit
d76c20a483
@ -49,7 +49,7 @@ async def test_bus(hass: HomeAssistant) -> None:
|
||||
"""Test for operational uk_transport sensor with proper attributes."""
|
||||
with requests_mock.Mocker() as mock_req:
|
||||
uri = re.compile(UkTransportSensor.TRANSPORT_API_URL_BASE + "*")
|
||||
mock_req.get(uri, text=load_fixture("uk_transport_bus.json"))
|
||||
mock_req.get(uri, text=load_fixture("uk_transport/bus.json"))
|
||||
assert await async_setup_component(hass, "sensor", VALID_CONFIG)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
@ -73,7 +73,7 @@ async def test_train(hass: HomeAssistant) -> None:
|
||||
"homeassistant.util.dt.now", return_value=now().replace(hour=13)
|
||||
):
|
||||
uri = re.compile(UkTransportSensor.TRANSPORT_API_URL_BASE + "*")
|
||||
mock_req.get(uri, text=load_fixture("uk_transport_train.json"))
|
||||
mock_req.get(uri, text=load_fixture("uk_transport/train.json"))
|
||||
assert await async_setup_component(hass, "sensor", VALID_CONFIG)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user