mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 10:47:15 +00:00

* Fix mypy issues in docker and hardware modules * Fix mypy issues in homeassistant module * Fix async_send_command typing * Fixes from feedback
22 lines
501 B
Python
22 lines
501 B
Python
"""Fixtures for docker tests."""
|
|
|
|
import pytest
|
|
|
|
from supervisor.coresys import CoreSys
|
|
from supervisor.docker.interface import DockerInterface
|
|
|
|
|
|
class TestDockerInterface(DockerInterface):
|
|
"""Test docker interface."""
|
|
|
|
@property
|
|
def name(self) -> str:
|
|
"""Name of test interface."""
|
|
return "test_interface"
|
|
|
|
|
|
@pytest.fixture
|
|
def test_docker_interface(coresys: CoreSys) -> TestDockerInterface:
|
|
"""Return test docker interface."""
|
|
return TestDockerInterface(coresys)
|