mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
* Add reconfigure step for google_travel_time * Do not allow to change name * Duplicate tests for reconfigure * Use link for description in strings.json * Try except else * Extend existing config flow tests
20 lines
431 B
Python
20 lines
431 B
Python
"""Constants for google_travel_time tests."""
|
|
|
|
from homeassistant.components.google_travel_time.const import (
|
|
CONF_DESTINATION,
|
|
CONF_ORIGIN,
|
|
)
|
|
from homeassistant.const import CONF_API_KEY
|
|
|
|
MOCK_CONFIG = {
|
|
CONF_API_KEY: "api_key",
|
|
CONF_ORIGIN: "location1",
|
|
CONF_DESTINATION: "location2",
|
|
}
|
|
|
|
RECONFIGURE_CONFIG = {
|
|
CONF_API_KEY: "api_key2",
|
|
CONF_ORIGIN: "location3",
|
|
CONF_DESTINATION: "location4",
|
|
}
|