* feat: add 100% test coverage * fix: dont patch logger * fix: better names * fix: use consts * fix: use built in const
18 lines
461 B
Python
18 lines
461 B
Python
"""Constants for the MadVR tests."""
|
|
|
|
from homeassistant.const import CONF_HOST, CONF_PORT
|
|
|
|
MOCK_CONFIG = {
|
|
CONF_HOST: "192.168.1.1",
|
|
CONF_PORT: 44077,
|
|
}
|
|
|
|
MOCK_MAC = "00:11:22:33:44:55"
|
|
|
|
TEST_CON_ERROR = ConnectionError("Connection failed")
|
|
TEST_IMP_ERROR = NotImplementedError("Not implemented")
|
|
|
|
TEST_FAILED_ON = "Failed to turn on device"
|
|
TEST_FAILED_OFF = "Failed to turn off device"
|
|
TEST_FAILED_CMD = "Failed to send command"
|
|
TEST_COMMAND = "test"
|