Add LogCaptureFixture type hints in tests (#118372)

This commit is contained in:
epenet 2024-05-29 14:10:00 +02:00 committed by GitHub
parent aeee222df4
commit 166c588cac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 98 additions and 47 deletions

View file

@ -74,7 +74,7 @@ async def test_fetching_url(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
fakeimgbytes_png,
caplog: pytest.CaptureFixture,
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test that it fetches the given url."""
hass.states.async_set("sensor.temp", "http://example.com/0a")