Cleanup Renault tests (#67030)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
3dd31acc33
commit
c3dc936b54
2 changed files with 0 additions and 37 deletions
|
@ -63,12 +63,6 @@ def patch_get_vehicles(vehicle_type: str):
|
|||
load_fixture(f"renault/vehicle_{vehicle_type}.json")
|
||||
)
|
||||
),
|
||||
), patch(
|
||||
"renault_api.renault_vehicle.RenaultVehicle.supports_endpoint",
|
||||
side_effect=MOCK_VEHICLES[vehicle_type]["endpoints_available"],
|
||||
), patch(
|
||||
"renault_api.renault_vehicle.RenaultVehicle.has_contract_for_endpoint",
|
||||
return_value=True,
|
||||
):
|
||||
yield
|
||||
|
||||
|
|
|
@ -79,13 +79,6 @@ MOCK_VEHICLES = {
|
|||
ATTR_NAME: "REG-NUMBER",
|
||||
ATTR_SW_VERSION: "X101VE",
|
||||
},
|
||||
"endpoints_available": [
|
||||
True, # cockpit
|
||||
True, # hvac-status
|
||||
False, # location
|
||||
True, # battery-status
|
||||
True, # charge-mode
|
||||
],
|
||||
"endpoints": {
|
||||
"battery_status": "battery_status_charging.json",
|
||||
"charge_mode": "charge_mode_always.json",
|
||||
|
@ -246,14 +239,6 @@ MOCK_VEHICLES = {
|
|||
ATTR_NAME: "REG-NUMBER",
|
||||
ATTR_SW_VERSION: "X102VE",
|
||||
},
|
||||
"endpoints_available": [
|
||||
True, # cockpit
|
||||
True, # hvac-status
|
||||
True, # location
|
||||
True, # battery-status
|
||||
True, # charge-mode
|
||||
True, # lock-status
|
||||
],
|
||||
"endpoints": {
|
||||
"battery_status": "battery_status_not_charging.json",
|
||||
"charge_mode": "charge_mode_schedule.json",
|
||||
|
@ -466,14 +451,6 @@ MOCK_VEHICLES = {
|
|||
ATTR_NAME: "REG-NUMBER",
|
||||
ATTR_SW_VERSION: "XJB1SU",
|
||||
},
|
||||
"endpoints_available": [
|
||||
True, # cockpit
|
||||
False, # hvac-status
|
||||
True, # location
|
||||
True, # battery-status
|
||||
True, # charge-mode
|
||||
True, # lock-status
|
||||
],
|
||||
"endpoints": {
|
||||
"battery_status": "battery_status_charging.json",
|
||||
"charge_mode": "charge_mode_always.json",
|
||||
|
@ -674,14 +651,6 @@ MOCK_VEHICLES = {
|
|||
ATTR_NAME: "REG-NUMBER",
|
||||
ATTR_SW_VERSION: "XJB1SU",
|
||||
},
|
||||
"endpoints_available": [
|
||||
True, # cockpit
|
||||
False, # hvac-status
|
||||
True, # location
|
||||
# Ignore, # battery-status
|
||||
# Ignore, # charge-mode
|
||||
True, # lock-status
|
||||
],
|
||||
"endpoints": {
|
||||
"cockpit": "cockpit_fuel.json",
|
||||
"location": "location.json",
|
||||
|
|
Loading…
Add table
Reference in a new issue