tests/conftest.py
def timeout_error_get_data_fixture():
    """Simulate authentication error when retrieving data from API."""
    with patch(
        "pymyenergi.client.MyenergiClient.refresh",
        side_effect=TimeoutException,
    ):
        yield
Simulate authentication error when retrieving data from API.
Simulate authentication error when retrieving data from API.
Simulate authentication error when retrieving data from API .
def timeout_error_get_data_fixture():
    with patch(
        "pymyenergi.client.MyenergiClient.refresh",
        side_effect=TimeoutException,
    ):
        yield
def timeout_error_get_data_fixture ( ) : with patch ( "pymyenergi.client.MyenergiClient.refresh" , side_effect = TimeoutException , ) : yield
Simulate authentication error when retrieving data from API.
Simulate authentication error when retrieving data from API .
"""Simulate authentication error when retrieving data from API."""