mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-05-12 13:58:39 +00:00

* Finish out effort of adding and enabling blockbuster * Skip getting addon file size until securetar fixed * Fix test for devcontainer and blocking I/O * Fix docker fixture and load_config to post_init
19 lines
473 B
Python
19 lines
473 B
Python
"""Unit tests for Sentry."""
|
|
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
from supervisor.bootstrap import initialize_coresys
|
|
|
|
|
|
@pytest.mark.usefixtures("supervisor_name", "docker")
|
|
async def test_sentry_disabled_by_default():
|
|
"""Test diagnostics off by default."""
|
|
with (
|
|
patch("supervisor.bootstrap.initialize_system"),
|
|
patch("sentry_sdk.init") as sentry_init,
|
|
):
|
|
await initialize_coresys()
|
|
sentry_init.assert_not_called()
|