Add type hints for FixtureRequest in tests (#118779)

This commit is contained in:
epenet 2024-06-04 10:37:54 +02:00 committed by GitHub
parent 16fd19f01a
commit b54a68750b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 67 additions and 36 deletions

View file

@ -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)