Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
2.6 KiB
Python
Raw Permalink Normal View History

2021-07-28 21:41:11 +02:00
"""Constants for the Renault integration tests."""
from homeassistant.components.renault.const import CONF_KAMEREON_ACCOUNT_ID, CONF_LOCALE
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
MOCK_ACCOUNT_ID = "account_id_1"
2021-07-28 21:41:11 +02:00
# Mock config data to be used across multiple tests
MOCK_CONFIG = {
CONF_USERNAME: "email@test.com",
CONF_PASSWORD: "test",
CONF_KAMEREON_ACCOUNT_ID: MOCK_ACCOUNT_ID,
2021-07-28 21:41:11 +02:00
CONF_LOCALE: "fr_FR",
}
MOCK_VEHICLES = {
"zoe_40": {
"endpoints": {
"battery_status": "battery_status_charging.json",
"charge_mode": "charge_mode_always.json",
"cockpit": "cockpit_ev.json",
"hvac_status": "hvac_status.1.json",
2021-07-28 21:41:11 +02:00
},
},
"zoe_50": {
"endpoints": {
"battery_status": "battery_status_not_charging.json",
"charge_mode": "charge_mode_schedule.json",
"charging_settings": "charging_settings.json",
2021-07-28 21:41:11 +02:00
"cockpit": "cockpit_ev.json",
"hvac_status": "hvac_status.2.json",
"location": "location.json",
"lock_status": "lock_status.1.json",
"res_state": "res_state.1.json",
"pressure": "pressure.1.json",
2021-07-28 21:41:11 +02:00
},
},
"captur_phev": {
"endpoints": {
"battery_status": "battery_status_charging.json",
"charge_mode": "charge_mode_always.json",
"charging_settings": "charging_settings_always.json",
2021-07-28 21:41:11 +02:00
"cockpit": "cockpit_fuel.json",
"location": "location.json",
"lock_status": "lock_status.1.json",
"res_state": "res_state.1.json",
2021-07-28 21:41:11 +02:00
},
},
"captur_fuel": {
"endpoints": {
"cockpit": "cockpit_fuel.json",
"location": "location.json",
"lock_status": "lock_status.1.json",
"res_state": "res_state.1.json",
},
2021-07-28 21:41:11 +02:00
},
"twingo_3_electric": {
"endpoints": {
"battery_status": "battery_status_waiting_for_charger.json",
"charge_mode": "charge_mode_always.2.json",
"charging_settings": "charging_settings_always.json",
"cockpit": "cockpit_ev.json",
"hvac_status": "hvac_status.3.json",
"location": "location.json",
"pressure": "pressure.1.json",
},
},
"megane_e_tech": {
"endpoints": {
"battery_status": "battery_status_charging.json",
"charging_settings": "charging_settings_delayed.json",
"cockpit": "cockpit_ev.json",
"hvac_status": "hvac_status.1.json",
"location": "location.json",
},
},
2021-07-28 21:41:11 +02:00
}