mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Replace unnecessary pydantic import in matrix tests (#146693)
This commit is contained in:
parent
1fb438fa6c
commit
7201171eb5
@ -1,6 +1,7 @@
|
|||||||
"""Test MatrixBot._login."""
|
"""Test MatrixBot._login."""
|
||||||
|
|
||||||
from pydantic.dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.matrix import MatrixBot
|
from homeassistant.components.matrix import MatrixBot
|
||||||
@ -17,7 +18,7 @@ class LoginTestParameters:
|
|||||||
access_token: dict[str, str]
|
access_token: dict[str, str]
|
||||||
expected_login_state: bool
|
expected_login_state: bool
|
||||||
expected_caplog_messages: set[str]
|
expected_caplog_messages: set[str]
|
||||||
expected_expection: type(Exception) | None = None
|
expected_expection: type[Exception] | None = None
|
||||||
|
|
||||||
|
|
||||||
good_password_missing_token = LoginTestParameters(
|
good_password_missing_token = LoginTestParameters(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user