Remove unused request fixtures (#119044)
This commit is contained in:
parent
6e9db52a5f
commit
4f6a98cee3
8 changed files with 7 additions and 20 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue