Skip to content

Commit

Permalink
doctweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Sep 25, 2024
1 parent 561ea94 commit debf7fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/components/evohome/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ async def test_authentication_failure_v2(
status: HTTPStatus,
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test failure to setup an evohome-compatible system."""
"""Test failure to setup an evohome-compatible system.
In this instance, the failure occurs in the v2 API.
"""

with patch("evohomeasync2.broker.Broker.get") as mock_fcn:
mock_fcn.side_effect = exc.AuthenticationFailed("", status=status)
Expand All @@ -126,7 +129,10 @@ async def test_client_request_failure_v2(
status: HTTPStatus,
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test failure to setup an evohome-compatible system."""
"""Test failure to setup an evohome-compatible system.
In this instance, the failure occurs in the v2 API.
"""

with patch("evohomeasync2.broker.Broker.get") as mock_fcn:
mock_fcn.side_effect = exc.RequestFailed("", status=status)
Expand Down

0 comments on commit debf7fb

Please sign in to comment.