mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 03:03:17 +01:00
Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places * Fix broken patch in pilight
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""Test methods in __main__."""
|
||||
from unittest.mock import PropertyMock, patch
|
||||
|
||||
from homeassistant import __main__ as main
|
||||
from homeassistant.const import REQUIRED_PYTHON_VER
|
||||
|
||||
from tests.async_mock import PropertyMock, patch
|
||||
|
||||
|
||||
@patch("sys.exit")
|
||||
def test_validate_python(mock_exit):
|
||||
|
||||
Reference in New Issue
Block a user