mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove pytest-mock dependency (#50400)
This commit is contained in:
parent
ca65cdd450
commit
4e24640ff7
@ -54,11 +54,11 @@ MOCK_SSDP_DATA = {
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def fc_class_mock(mocker):
|
def fc_class_mock():
|
||||||
"""Fixture that sets up a mocked FritzConnection class."""
|
"""Fixture that sets up a mocked FritzConnection class."""
|
||||||
result = mocker.patch("fritzconnection.FritzConnection", autospec=True)
|
with patch("fritzconnection.FritzConnection", autospec=True) as result:
|
||||||
result.return_value = FritzConnectionMock()
|
result.return_value = FritzConnectionMock()
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
|
|
||||||
async def test_user(hass: HomeAssistant, fc_class_mock):
|
async def test_user(hass: HomeAssistant, fc_class_mock):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user