2021-05-15 18:22:32 +00:00
|
|
|
"""Provide common smhi fixtures."""
|
2024-03-08 18:16:21 +00:00
|
|
|
|
2021-05-15 18:22:32 +00:00
|
|
|
import pytest
|
|
|
|
|
2023-08-07 15:24:43 +00:00
|
|
|
from homeassistant.components.smhi.const import DOMAIN
|
|
|
|
|
2021-05-15 18:22:32 +00:00
|
|
|
from tests.common import load_fixture
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
|
|
def api_response():
|
|
|
|
"""Return an API response."""
|
2023-08-07 15:24:43 +00:00
|
|
|
return load_fixture("smhi.json", DOMAIN)
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
|
|
def api_response_lack_data():
|
|
|
|
"""Return an API response."""
|
|
|
|
return load_fixture("smhi_short.json", DOMAIN)
|