mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00: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,12 +1,13 @@
|
||||
"""Test Home Assistant util methods."""
|
||||
from datetime import datetime, timedelta
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant import util
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.async_mock import MagicMock, patch
|
||||
|
||||
|
||||
def test_sanitize_filename():
|
||||
"""Test sanitize_filename."""
|
||||
|
||||
Reference in New Issue
Block a user