From b91a8f510cc8e7f2f5e940ce93231e3e046feee6 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 13 Dec 2019 12:29:24 +0100 Subject: [PATCH] Fix incorrect file format yr test fixure (#29910) --- tests/components/yr/test_sensor.py | 6 +++--- tests/fixtures/{yr.no.json => yr.no.xml} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/fixtures/{yr.no.json => yr.no.xml} (100%) diff --git a/tests/components/yr/test_sensor.py b/tests/components/yr/test_sensor.py index 1e8282a58ff..21ce0bbe7ce 100644 --- a/tests/components/yr/test_sensor.py +++ b/tests/components/yr/test_sensor.py @@ -16,7 +16,7 @@ def test_default_setup(hass, aioclient_mock): """Test the default setup.""" aioclient_mock.get( "https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/", - text=load_fixture("yr.no.json"), + text=load_fixture("yr.no.xml"), ) config = {"platform": "yr", "elevation": 0} hass.allow_pool = True @@ -36,7 +36,7 @@ def test_custom_setup(hass, aioclient_mock): """Test a custom setup.""" aioclient_mock.get( "https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/", - text=load_fixture("yr.no.json"), + text=load_fixture("yr.no.xml"), ) config = { @@ -82,7 +82,7 @@ def test_forecast_setup(hass, aioclient_mock): """Test a custom setup with 24h forecast.""" aioclient_mock.get( "https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/", - text=load_fixture("yr.no.json"), + text=load_fixture("yr.no.xml"), ) config = { diff --git a/tests/fixtures/yr.no.json b/tests/fixtures/yr.no.xml similarity index 100% rename from tests/fixtures/yr.no.json rename to tests/fixtures/yr.no.xml