mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix tests
This commit is contained in:
@@ -201,6 +201,7 @@ TEST_IDS = [
|
|||||||
TEST_PARAMS,
|
TEST_PARAMS,
|
||||||
ids=TEST_IDS,
|
ids=TEST_IDS,
|
||||||
)
|
)
|
||||||
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||||
async def test_jewish_calendar_sensor(
|
async def test_jewish_calendar_sensor(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
now,
|
now,
|
||||||
@@ -541,6 +542,7 @@ SHABBAT_TEST_IDS = [
|
|||||||
SHABBAT_PARAMS,
|
SHABBAT_PARAMS,
|
||||||
ids=SHABBAT_TEST_IDS,
|
ids=SHABBAT_TEST_IDS,
|
||||||
)
|
)
|
||||||
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||||
async def test_shabbat_times_sensor(
|
async def test_shabbat_times_sensor(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
language,
|
language,
|
||||||
@@ -617,6 +619,7 @@ OMER_TEST_IDS = [
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(("test_time", "result"), OMER_PARAMS, ids=OMER_TEST_IDS)
|
@pytest.mark.parametrize(("test_time", "result"), OMER_PARAMS, ids=OMER_TEST_IDS)
|
||||||
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||||
async def test_omer_sensor(hass: HomeAssistant, test_time, result) -> None:
|
async def test_omer_sensor(hass: HomeAssistant, test_time, result) -> None:
|
||||||
"""Test Omer Count sensor output."""
|
"""Test Omer Count sensor output."""
|
||||||
test_time = test_time.replace(tzinfo=dt_util.get_time_zone(hass.config.time_zone))
|
test_time = test_time.replace(tzinfo=dt_util.get_time_zone(hass.config.time_zone))
|
||||||
@@ -651,6 +654,7 @@ DAFYOMI_TEST_IDS = [
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(("test_time", "result"), DAFYOMI_PARAMS, ids=DAFYOMI_TEST_IDS)
|
@pytest.mark.parametrize(("test_time", "result"), DAFYOMI_PARAMS, ids=DAFYOMI_TEST_IDS)
|
||||||
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||||
async def test_dafyomi_sensor(hass: HomeAssistant, test_time, result) -> None:
|
async def test_dafyomi_sensor(hass: HomeAssistant, test_time, result) -> None:
|
||||||
"""Test Daf Yomi sensor output."""
|
"""Test Daf Yomi sensor output."""
|
||||||
test_time = test_time.replace(tzinfo=dt_util.get_time_zone(hass.config.time_zone))
|
test_time = test_time.replace(tzinfo=dt_util.get_time_zone(hass.config.time_zone))
|
||||||
|
Reference in New Issue
Block a user