From c3dc936b54451af0cf3c461ba1211dc4c3241343 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 22 Feb 2022 14:21:38 +0100 Subject: [PATCH] Cleanup Renault tests (#67030) Co-authored-by: epenet --- tests/components/renault/conftest.py | 6 ------ tests/components/renault/const.py | 31 ---------------------------- 2 files changed, 37 deletions(-) diff --git a/tests/components/renault/conftest.py b/tests/components/renault/conftest.py index da86b41e3b0..89c6c364860 100644 --- a/tests/components/renault/conftest.py +++ b/tests/components/renault/conftest.py @@ -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 diff --git a/tests/components/renault/const.py b/tests/components/renault/const.py index d0fadc54030..368f3b97fbd 100644 --- a/tests/components/renault/const.py +++ b/tests/components/renault/const.py @@ -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",