mirror of
https://github.com/home-assistant/core.git
synced 2026-05-29 19:57:40 +01:00
15eed166ec
* SMHI forecast service * Mod weather * reset weather * Fix tests * coverage * add test
19 lines
429 B
Python
19 lines
429 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)
|