core/tests/components/smhi/conftest.py

20 lines
430 B
Python

"""Provide common smhi fixtures."""
import pytest
from homeassistant.components.smhi.const import DOMAIN
from tests.common import load_fixture
@pytest.fixture(scope="session")
def api_response():
"""Return an API response."""
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)