mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix mailbox PytestCollectionWarning (#97740)
This commit is contained in:
parent
447479d0a0
commit
3f5a21dce4
@ -40,6 +40,9 @@ def _create_message(idx: int) -> dict[str, Any]:
|
|||||||
class TestMailbox(mailbox.Mailbox):
|
class TestMailbox(mailbox.Mailbox):
|
||||||
"""Test Mailbox, with 10 sample messages."""
|
"""Test Mailbox, with 10 sample messages."""
|
||||||
|
|
||||||
|
# This class doesn't contain any tests! Skip pytest test collection.
|
||||||
|
__test__ = False
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, name: str) -> None:
|
def __init__(self, hass: HomeAssistant, name: str) -> None:
|
||||||
"""Initialize Test mailbox."""
|
"""Initialize Test mailbox."""
|
||||||
super().__init__(hass, name)
|
super().__init__(hass, name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user