Add type hints for FixtureRequest in tests (#118779)
This commit is contained in:
parent
16fd19f01a
commit
b54a68750b
27 changed files with 67 additions and 36 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue