mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Add type hints for FixtureRequest in tests (#118779)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""PyTest fixtures and test helpers."""
|
||||
|
||||
from typing import Any
|
||||
from unittest import mock
|
||||
from unittest.mock import AsyncMock, PropertyMock, patch
|
||||
|
||||
@@ -71,7 +72,7 @@ def config_fixture():
|
||||
|
||||
|
||||
@pytest.fixture(name="feature")
|
||||
def feature_fixture(request):
|
||||
def feature_fixture(request: pytest.FixtureRequest) -> Any:
|
||||
"""Return an entity wrapper from given fixture name."""
|
||||
return request.getfixturevalue(request.param)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user