Fix sentry test assert (#96983)

pull/96990/head
Marc Mueller 2023-07-21 08:55:44 +02:00 committed by GitHub
parent 92eaef9b18
commit 32d63ae890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ async def test_setup_entry(hass: HomeAssistant) -> None:
assert entry.options[CONF_ENVIRONMENT] == "production"
assert sentry_logging_mock.call_count == 1
assert sentry_logging_mock.called_once_with(
level=logging.WARNING, event_level=logging.WARNING
sentry_logging_mock.assert_called_once_with(
level=logging.WARNING, event_level=logging.ERROR
)
assert sentry_aiohttp_mock.call_count == 1