hass-core/tests/components/backup/test_init.py
Joakim Sørensen 0ed51dae13
Add Backup integration (#66395)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-28 15:48:12 -08:00

18 lines
558 B
Python

"""Tests for the Backup integration."""
import pytest
from homeassistant.core import HomeAssistant
from .common import setup_backup_integration
async def test_setup_with_hassio(
hass: HomeAssistant,
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test the setup of the integration with hassio enabled."""
assert not await setup_backup_integration(hass=hass, with_hassio=True)
assert (
"The backup integration is not supported on this installation method, please remove it from your configuration"
in caplog.text
)