Cleanup samsungtv tests (#66570)
* Drop unused init method * Add type hints to media_player tests * Adjust test_init * Adjust media_player * Add type hints to conftest * Use Mock in test_media_player * Use lowercase in test_init * Use relative import in diagnostics * Add type hints to config_flow * Adjust coveragerc * Make gethostbyname autouse * Cleanup gethostbyname and remote fixtures * Drop unused fixtures * Undo type hints and usefixtures on media_player * Undo type hints and usefixtures in test_init * Undo type hints in conftest * Undo usefixtures in test_config_flow * Format Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d29acadebd
commit
cf5652737a
7 changed files with 84 additions and 167 deletions
|
@ -7,9 +7,10 @@ from homeassistant.components.samsungtv import DOMAIN
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .test_media_player import MOCK_ENTRY_WS_WITH_MAC
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
from tests.components.diagnostics import get_diagnostics_for_config_entry
|
||||
from tests.components.samsungtv.test_media_player import MOCK_ENTRY_WS_WITH_MAC
|
||||
|
||||
|
||||
@pytest.fixture(name="config_entry")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue