Fix tests

This commit is contained in:
Tsvi Mostovicz
2024-06-23 11:48:05 +00:00
parent 2469d2ccc3
commit 7f54947b95

View File

@@ -201,6 +201,7 @@ TEST_IDS = [
TEST_PARAMS,
ids=TEST_IDS,
)
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_jewish_calendar_sensor(
hass: HomeAssistant,
now,
@@ -541,6 +542,7 @@ SHABBAT_TEST_IDS = [
SHABBAT_PARAMS,
ids=SHABBAT_TEST_IDS,
)
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_shabbat_times_sensor(
hass: HomeAssistant,
language,
@@ -617,6 +619,7 @@ 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:
"""Test Omer Count sensor output."""
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.usefixtures("entity_registry_enabled_by_default")
async def test_dafyomi_sensor(hass: HomeAssistant, test_time, result) -> None:
"""Test Daf Yomi sensor output."""
test_time = test_time.replace(tzinfo=dt_util.get_time_zone(hass.config.time_zone))