Add LogCaptureFixture type hints in tests (#118372)
This commit is contained in:
parent
aeee222df4
commit
166c588cac
19 changed files with 98 additions and 47 deletions
|
@ -20,7 +20,11 @@ from tests.common import MockConfigEntry
|
|||
],
|
||||
)
|
||||
async def test_init_error(
|
||||
hass: HomeAssistant, mock_config_entry: MockConfigEntry, caplog, side_effect, error
|
||||
hass: HomeAssistant,
|
||||
mock_config_entry: MockConfigEntry,
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
side_effect,
|
||||
error,
|
||||
) -> None:
|
||||
"""Test initialization errors."""
|
||||
with patch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue