From 2349ce1abd4ad8bffe3350a5f2ec2dd150e659f0 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:28:30 +0100 Subject: [PATCH] Move yandex transport fixture to integration test (#112988) * Move yandex transport fixture to integration test * Update tests/components/yandex_transport/test_sensor.py * Ran ruff --------- Co-authored-by: Paulus Schoutsen Co-authored-by: Franck Nijhof --- .../yandex_transport/fixtures/bus_reply.json} | 0 .../yandex_transport/fixtures/suburban_reply.json} | 0 .../{test_yandex_transport_sensor.py => test_sensor.py} | 6 ++++-- 3 files changed, 4 insertions(+), 2 deletions(-) rename tests/{fixtures/yandex_transport_bus_reply.json => components/yandex_transport/fixtures/bus_reply.json} (100%) rename tests/{fixtures/yandex_transport_suburban_reply.json => components/yandex_transport/fixtures/suburban_reply.json} (100%) rename tests/components/yandex_transport/{test_yandex_transport_sensor.py => test_sensor.py} (95%) diff --git a/tests/fixtures/yandex_transport_bus_reply.json b/tests/components/yandex_transport/fixtures/bus_reply.json similarity index 100% rename from tests/fixtures/yandex_transport_bus_reply.json rename to tests/components/yandex_transport/fixtures/bus_reply.json diff --git a/tests/fixtures/yandex_transport_suburban_reply.json b/tests/components/yandex_transport/fixtures/suburban_reply.json similarity index 100% rename from tests/fixtures/yandex_transport_suburban_reply.json rename to tests/components/yandex_transport/fixtures/suburban_reply.json diff --git a/tests/components/yandex_transport/test_yandex_transport_sensor.py b/tests/components/yandex_transport/test_sensor.py similarity index 95% rename from tests/components/yandex_transport/test_yandex_transport_sensor.py rename to tests/components/yandex_transport/test_sensor.py index deb4fd1f360..d302ce17a26 100644 --- a/tests/components/yandex_transport/test_yandex_transport_sensor.py +++ b/tests/components/yandex_transport/test_sensor.py @@ -13,8 +13,10 @@ import homeassistant.util.dt as dt_util from tests.common import assert_setup_component, load_fixture -BUS_REPLY = json.loads(load_fixture("yandex_transport_bus_reply.json")) -SUBURBAN_TRAIN_REPLY = json.loads(load_fixture("yandex_transport_suburban_reply.json")) +BUS_REPLY = json.loads(load_fixture("bus_reply.json", "yandex_transport")) +SUBURBAN_TRAIN_REPLY = json.loads( + load_fixture("suburban_reply.json", "yandex_transport") +) @pytest.fixture