init home-assistant
This commit is contained in:
23
home-assistant/tests/components/sentry/conftest.py
Normal file
23
home-assistant/tests/components/sentry/conftest.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""Configuration for Sentry tests."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.sentry.const import DOMAIN
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture(name="config_entry")
|
||||
def config_entry_fixture() -> MockConfigEntry:
|
||||
"""Create a mock config entry."""
|
||||
return MockConfigEntry(domain=DOMAIN, title="Sentry")
|
||||
|
||||
|
||||
@pytest.fixture(name="config")
|
||||
def config_fixture() -> dict[str, Any]:
|
||||
"""Create hass config fixture."""
|
||||
return {DOMAIN: {"dsn": "http://public@sentry.local/1"}}
|
||||
Reference in New Issue
Block a user