mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix incorrect file format yr test fixure (#29910)
This commit is contained in:
parent
1301a4fcc6
commit
b91a8f510c
@ -16,7 +16,7 @@ def test_default_setup(hass, aioclient_mock):
|
|||||||
"""Test the default setup."""
|
"""Test the default setup."""
|
||||||
aioclient_mock.get(
|
aioclient_mock.get(
|
||||||
"https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/",
|
"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}
|
config = {"platform": "yr", "elevation": 0}
|
||||||
hass.allow_pool = True
|
hass.allow_pool = True
|
||||||
@ -36,7 +36,7 @@ def test_custom_setup(hass, aioclient_mock):
|
|||||||
"""Test a custom setup."""
|
"""Test a custom setup."""
|
||||||
aioclient_mock.get(
|
aioclient_mock.get(
|
||||||
"https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/",
|
"https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/",
|
||||||
text=load_fixture("yr.no.json"),
|
text=load_fixture("yr.no.xml"),
|
||||||
)
|
)
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -82,7 +82,7 @@ def test_forecast_setup(hass, aioclient_mock):
|
|||||||
"""Test a custom setup with 24h forecast."""
|
"""Test a custom setup with 24h forecast."""
|
||||||
aioclient_mock.get(
|
aioclient_mock.get(
|
||||||
"https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/",
|
"https://aa015h6buqvih86i1.api.met.no/" "weatherapi/locationforecast/1.9/",
|
||||||
text=load_fixture("yr.no.json"),
|
text=load_fixture("yr.no.xml"),
|
||||||
)
|
)
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user