mirror of
https://github.com/home-assistant/core.git
synced 2026-06-30 11:16:05 +01:00
81 lines
2.8 KiB
Python
81 lines
2.8 KiB
Python
"""Constants for the Renault integration tests."""
|
|
|
|
from homeassistant.components.renault.const import RenaultConfigurationKeys
|
|
|
|
MOCK_ACCOUNT_ID = "account_id_1"
|
|
MOCK_LOGIN_TOKEN = "sample-login-token"
|
|
|
|
# Mock config data to be used across multiple tests
|
|
MOCK_CONFIG = {
|
|
RenaultConfigurationKeys.USERNAME: "email@test.com",
|
|
RenaultConfigurationKeys.PASSWORD: "test",
|
|
RenaultConfigurationKeys.LOGIN_TOKEN: MOCK_LOGIN_TOKEN,
|
|
RenaultConfigurationKeys.KAMEREON_ACCOUNT_ID: MOCK_ACCOUNT_ID,
|
|
RenaultConfigurationKeys.LOCALE: "fr_FR",
|
|
}
|
|
|
|
MOCK_VEHICLES = {
|
|
"zoe_40": {
|
|
"endpoints": {
|
|
"battery_status": "battery_status_charging.json",
|
|
"battery_soc": "battery_soc.json",
|
|
"charge_mode": "charge_mode_always.json",
|
|
"cockpit": "cockpit_ev.json",
|
|
"hvac_status": "hvac_status.1.json",
|
|
},
|
|
},
|
|
"zoe_50": {
|
|
"endpoints": {
|
|
"battery_status": "battery_status_not_charging.json",
|
|
"battery_soc": "battery_soc.json",
|
|
"charge_mode": "charge_mode_schedule.json",
|
|
"charging_settings": "charging_settings.json",
|
|
"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",
|
|
},
|
|
},
|
|
"captur_phev": {
|
|
"endpoints": {
|
|
"battery_status": "battery_status_charging.json",
|
|
"charge_mode": "charge_mode_always.json",
|
|
"charging_settings": "charging_settings_always.json",
|
|
"cockpit": "cockpit_fuel.json",
|
|
"location": "location.json",
|
|
"lock_status": "lock_status.1.json",
|
|
"res_state": "res_state.1.json",
|
|
},
|
|
},
|
|
"captur_fuel": {
|
|
"endpoints": {
|
|
"cockpit": "cockpit_fuel.json",
|
|
"location": "location.json",
|
|
"lock_status": "lock_status.1.json",
|
|
"res_state": "res_state.1.json",
|
|
},
|
|
},
|
|
"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",
|
|
},
|
|
},
|
|
}
|