core/tests/components/sentry/conftest.py

23 lines
560 B
Python
Raw Normal View History

"""Configuration for Sentry tests."""
from __future__ import annotations
from typing import Any
2020-01-03 20:34:20 +00:00
import pytest
from homeassistant.components.sentry import DOMAIN
from tests.common import MockConfigEntry
@pytest.fixture(name="config_entry")
def config_entry_fixture() -> MockConfigEntry:
2020-01-03 20:34:20 +00:00
"""Create a mock config entry."""
return MockConfigEntry(domain=DOMAIN, title="Sentry")
@pytest.fixture(name="config")
def config_fixture() -> dict[str, Any]:
2020-01-03 20:34:20 +00:00
"""Create hass config fixture."""
return {DOMAIN: {"dsn": "http://public@sentry.local/1"}}