Remove unused request fixtures (#119044)

This commit is contained in:
epenet 2024-06-07 09:19:03 +02:00 committed by GitHub
parent 6e9db52a5f
commit 4f6a98cee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 7 additions and 20 deletions

View file

@ -120,7 +120,6 @@ async def test_backup_end(
hass: HomeAssistant,
hass_ws_client: WebSocketGenerator,
snapshot: SnapshotAssertion,
request: pytest.FixtureRequest,
sync_access_token_proxy: str,
*,
access_token_fixture_name: str,

View file

@ -9,9 +9,7 @@ from typing_extensions import Generator
@pytest.fixture
def bmw_fixture(
request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch
) -> Generator[respx.MockRouter]:
def bmw_fixture(monkeypatch: pytest.MonkeyPatch) -> Generator[respx.MockRouter]:
"""Patch MyBMW login API calls."""
# we use the library's mock router to mock the API calls, but only with a subset of vehicles

View file

@ -40,7 +40,7 @@ def mock_setup_entry() -> Generator[AsyncMock]:
@pytest.fixture
def mock_bsblan(request: pytest.FixtureRequest) -> Generator[MagicMock]:
def mock_bsblan() -> Generator[MagicMock]:
"""Return a mocked BSBLAN client."""
with (

View file

@ -72,9 +72,7 @@ def mock_ipp_config_flow(mock_printer: Printer) -> Generator[MagicMock]:
@pytest.fixture
def mock_ipp(
request: pytest.FixtureRequest, mock_printer: Printer
) -> Generator[MagicMock]:
def mock_ipp(mock_printer: Printer) -> Generator[MagicMock]:
"""Return a mocked IPP client."""
with patch(

View file

@ -57,9 +57,7 @@ def device_fixture() -> LaMarzoccoModel:
@pytest.fixture
def mock_lamarzocco(
request: pytest.FixtureRequest, device_fixture: LaMarzoccoModel
) -> Generator[MagicMock]:
def mock_lamarzocco(device_fixture: LaMarzoccoModel) -> Generator[MagicMock]:
"""Return a mocked LM client."""
model_name = device_fixture

View file

@ -29,9 +29,7 @@ def mock_setup_entry() -> Generator[AsyncMock]:
@pytest.fixture
def mock_latest_rates_config_flow(
request: pytest.FixtureRequest,
) -> Generator[AsyncMock]:
def mock_latest_rates_config_flow() -> Generator[AsyncMock]:
"""Return a mocked WLED client."""
with patch(
"homeassistant.components.openexchangerates.config_flow.Client.get_latest",

View file

@ -35,9 +35,7 @@ def mock_setup_entry() -> Generator[None]:
@pytest.fixture
def mock_pure_energie_config_flow(
request: pytest.FixtureRequest,
) -> Generator[MagicMock]:
def mock_pure_energie_config_flow() -> Generator[MagicMock]:
"""Return a mocked Pure Energie client."""
with patch(
"homeassistant.components.pure_energie.config_flow.GridNet", autospec=True

View file

@ -64,9 +64,7 @@ def mock_roku_config_flow(mock_device: RokuDevice) -> Generator[MagicMock]:
@pytest.fixture
def mock_roku(
request: pytest.FixtureRequest, mock_device: RokuDevice
) -> Generator[MagicMock]:
def mock_roku(mock_device: RokuDevice) -> Generator[MagicMock]:
"""Return a mocked Roku client."""
with patch(