mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00

* Refactor tests - step 1 * Remove fixture * Refactor test_init * Refactor test_diagnostics * Refactor test_config_flow * Increase test coverage * Cleaning * Cleaning * Check config entry state in test_async_setup_entry * Simplify patching * Use AsyncMock when patching --------- Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
16 lines
419 B
Python
16 lines
419 B
Python
"""Tests for Brother Printer integration."""
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def init_integration(
|
|
hass: HomeAssistant, entry: MockConfigEntry
|
|
) -> MockConfigEntry:
|
|
"""Set up the Brother integration in Home Assistant."""
|
|
entry.add_to_hass(hass)
|
|
|
|
await hass.config_entries.async_setup(entry.entry_id)
|
|
await hass.async_block_till_done()
|