1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add typing to tests with single hass argument (#87631)

This commit is contained in:
epenet
2023-02-07 15:01:16 +01:00
committed by GitHub
parent fe9f6823c3
commit 59ca7780fa
33 changed files with 104 additions and 75 deletions

View File

@@ -6,6 +6,7 @@ from unittest.mock import Mock, patch
import pytest
from homeassistant.core import HomeAssistant
from homeassistant.generated import config_flows
from homeassistant.helpers import translation
from homeassistant.loader import async_get_integration
@@ -75,7 +76,7 @@ async def test_component_translation_path(hass, enable_custom_integrations):
)
def test_load_translations_files(hass):
def test_load_translations_files(hass: HomeAssistant) -> None:
"""Test the load translation files function."""
# Test one valid and one invalid file
file1 = hass.config.path(