diff --git a/poetry.lock b/poetry.lock index 10e66fc8..8e615160 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1618,29 +1618,29 @@ files = [ [[package]] name = "ruff" -version = "0.5.5" +version = "0.6.2" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.5.5-py3-none-linux_armv6l.whl", hash = "sha256:605d589ec35d1da9213a9d4d7e7a9c761d90bba78fc8790d1c5e65026c1b9eaf"}, - {file = "ruff-0.5.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:00817603822a3e42b80f7c3298c8269e09f889ee94640cd1fc7f9329788d7bf8"}, - {file = "ruff-0.5.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:187a60f555e9f865a2ff2c6984b9afeffa7158ba6e1eab56cb830404c942b0f3"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe26fc46fa8c6e0ae3f47ddccfbb136253c831c3289bba044befe68f467bfb16"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4ad25dd9c5faac95c8e9efb13e15803cd8bbf7f4600645a60ffe17c73f60779b"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f70737c157d7edf749bcb952d13854e8f745cec695a01bdc6e29c29c288fc36e"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:cfd7de17cef6ab559e9f5ab859f0d3296393bc78f69030967ca4d87a541b97a0"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a09b43e02f76ac0145f86a08e045e2ea452066f7ba064fd6b0cdccb486f7c3e7"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d0b856cb19c60cd40198be5d8d4b556228e3dcd545b4f423d1ad812bfdca5884"}, - {file = "ruff-0.5.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3687d002f911e8a5faf977e619a034d159a8373514a587249cc00f211c67a091"}, - {file = "ruff-0.5.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:ac9dc814e510436e30d0ba535f435a7f3dc97f895f844f5b3f347ec8c228a523"}, - {file = "ruff-0.5.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:af9bdf6c389b5add40d89b201425b531e0a5cceb3cfdcc69f04d3d531c6be74f"}, - {file = "ruff-0.5.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d40a8533ed545390ef8315b8e25c4bb85739b90bd0f3fe1280a29ae364cc55d8"}, - {file = "ruff-0.5.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:cab904683bf9e2ecbbe9ff235bfe056f0eba754d0168ad5407832928d579e7ab"}, - {file = "ruff-0.5.5-py3-none-win32.whl", hash = "sha256:696f18463b47a94575db635ebb4c178188645636f05e934fdf361b74edf1bb2d"}, - {file = "ruff-0.5.5-py3-none-win_amd64.whl", hash = "sha256:50f36d77f52d4c9c2f1361ccbfbd09099a1b2ea5d2b2222c586ab08885cf3445"}, - {file = "ruff-0.5.5-py3-none-win_arm64.whl", hash = "sha256:3191317d967af701f1b73a31ed5788795936e423b7acce82a2b63e26eb3e89d6"}, - {file = "ruff-0.5.5.tar.gz", hash = "sha256:cc5516bdb4858d972fbc31d246bdb390eab8df1a26e2353be2dbc0c2d7f5421a"}, + {file = "ruff-0.6.2-py3-none-linux_armv6l.whl", hash = "sha256:5c8cbc6252deb3ea840ad6a20b0f8583caab0c5ef4f9cca21adc5a92b8f79f3c"}, + {file = "ruff-0.6.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:17002fe241e76544448a8e1e6118abecbe8cd10cf68fde635dad480dba594570"}, + {file = "ruff-0.6.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3dbeac76ed13456f8158b8f4fe087bf87882e645c8e8b606dd17b0b66c2c1158"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:094600ee88cda325988d3f54e3588c46de5c18dae09d683ace278b11f9d4d534"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:316d418fe258c036ba05fbf7dfc1f7d3d4096db63431546163b472285668132b"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d72b8b3abf8a2d51b7b9944a41307d2f442558ccb3859bbd87e6ae9be1694a5d"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:2aed7e243be68487aa8982e91c6e260982d00da3f38955873aecd5a9204b1d66"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d371f7fc9cec83497fe7cf5eaf5b76e22a8efce463de5f775a1826197feb9df8"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a8f310d63af08f583363dfb844ba8f9417b558199c58a5999215082036d795a1"}, + {file = "ruff-0.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7db6880c53c56addb8638fe444818183385ec85eeada1d48fc5abe045301b2f1"}, + {file = "ruff-0.6.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:1175d39faadd9a50718f478d23bfc1d4da5743f1ab56af81a2b6caf0a2394f23"}, + {file = "ruff-0.6.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:5b939f9c86d51635fe486585389f54582f0d65b8238e08c327c1534844b3bb9a"}, + {file = "ruff-0.6.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d0d62ca91219f906caf9b187dea50d17353f15ec9bb15aae4a606cd697b49b4c"}, + {file = "ruff-0.6.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:7438a7288f9d67ed3c8ce4d059e67f7ed65e9fe3aa2ab6f5b4b3610e57e3cb56"}, + {file = "ruff-0.6.2-py3-none-win32.whl", hash = "sha256:279d5f7d86696df5f9549b56b9b6a7f6c72961b619022b5b7999b15db392a4da"}, + {file = "ruff-0.6.2-py3-none-win_amd64.whl", hash = "sha256:d9f3469c7dd43cd22eb1c3fc16926fb8258d50cb1b216658a07be95dd117b0f2"}, + {file = "ruff-0.6.2-py3-none-win_arm64.whl", hash = "sha256:f28fcd2cd0e02bdf739297516d5643a945cc7caf09bd9bcb4d932540a5ea4fa9"}, + {file = "ruff-0.6.2.tar.gz", hash = "sha256:239ee6beb9e91feb8e0ec384204a763f36cb53fb895a1a364618c6abb076b3be"}, ] [[package]] diff --git a/tests/conftest.py b/tests/conftest.py index 14ecf462..fce4f8a5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -37,7 +37,7 @@ def mocked_responses() -> Generator[aioresponses, None, None]: yield m -@pytest.fixture() +@pytest.fixture def cli_runner(monkeypatch: MonkeyPatch, tmpdir: pathlib.Path) -> CliRunner: """Fixture for invoking command-line interfaces.""" runner = CliRunner() diff --git a/tests/gigya/test_gigya.py b/tests/gigya/test_gigya.py index feea6ce9..7ea6d773 100644 --- a/tests/gigya/test_gigya.py +++ b/tests/gigya/test_gigya.py @@ -15,7 +15,7 @@ from renault_api import gigya -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_login( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -32,7 +32,7 @@ async def test_login( assert response.get_session_cookie() == TEST_LOGIN_TOKEN -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_login_error( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -49,7 +49,7 @@ async def test_login_error( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_person_id( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -65,7 +65,7 @@ async def test_person_id( assert response.get_person_id() == TEST_PERSON_ID -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_jwt_token( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: diff --git a/tests/kamereon/test_kamereon.py b/tests/kamereon/test_kamereon.py index 90753736..4e1f7077 100644 --- a/tests/kamereon/test_kamereon.py +++ b/tests/kamereon/test_kamereon.py @@ -18,7 +18,7 @@ from renault_api.kamereon import exceptions -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_person( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -37,7 +37,7 @@ async def test_get_person( assert len(person.accounts) == 2 -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_account_vehicles( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -54,7 +54,7 @@ async def test_get_account_vehicles( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_vehicle_data( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -73,7 +73,7 @@ async def test_get_vehicle_data( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_vehicle_data_xml_bad_gateway( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: @@ -98,7 +98,7 @@ async def test_get_vehicle_data_xml_bad_gateway( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_vehicle_action( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: diff --git a/tests/test_api_keys.py b/tests/test_api_keys.py index 9842db54..310f1e60 100644 --- a/tests/test_api_keys.py +++ b/tests/test_api_keys.py @@ -14,7 +14,7 @@ from renault_api.helpers import get_api_keys -@pytest.mark.asyncio() +@pytest.mark.asyncio @pytest.mark.parametrize("locale", AVAILABLE_LOCALES.keys()) async def test_available_locales(locale: str) -> None: """Ensure all items AVAILABLE_LOCALES have correct data.""" @@ -31,7 +31,7 @@ async def test_available_locales(locale: str) -> None: assert api_keys[key] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_missing_aiohttp_session() -> None: """Ensure failure to unknown locale if aiohttp_session is not set.""" locale = "invalid" @@ -41,7 +41,7 @@ async def test_missing_aiohttp_session() -> None: assert "aiohttp_session is not set." in str(excinfo) -@pytest.mark.asyncio() +@pytest.mark.asyncio @pytest.mark.parametrize("locale", AVAILABLE_LOCALES.keys()) @pytest.mark.skip(reason="Makes real calls to Renault servers") async def test_preload_force_api_keys(websession: ClientSession, locale: str) -> None: @@ -53,7 +53,7 @@ async def test_preload_force_api_keys(websession: ClientSession, locale: str) -> assert api_keys == expected_api_keys -@pytest.mark.asyncio() +@pytest.mark.asyncio @pytest.mark.skip("API keys are out of date.") async def test_preload_unknown_api_keys( websession: ClientSession, mocked_responses: aioresponses @@ -73,7 +73,7 @@ async def test_preload_unknown_api_keys( assert api_keys == expected_api_keys -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_preload_invalid_api_keys( websession: ClientSession, mocked_responses: aioresponses ) -> None: diff --git a/tests/test_renault_account.py b/tests/test_renault_account.py index 793a3f04..71a97b17 100644 --- a/tests/test_renault_account.py +++ b/tests/test_renault_account.py @@ -15,7 +15,7 @@ from renault_api.renault_account import RenaultAccount -@pytest.fixture() +@pytest.fixture def account(websession: aiohttp.ClientSession) -> RenaultAccount: """Fixture for testing RenaultAccount.""" return RenaultAccount( @@ -40,7 +40,7 @@ def tests_init(websession: aiohttp.ClientSession) -> None: ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_vehicles( account: RenaultAccount, mocked_responses: aioresponses ) -> None: @@ -49,7 +49,7 @@ async def test_get_vehicles( await account.get_vehicles() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_api_vehicles( account: RenaultAccount, mocked_responses: aioresponses ) -> None: @@ -58,7 +58,7 @@ async def test_get_api_vehicles( await account.get_api_vehicles() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_api_vehicle(account: RenaultAccount) -> None: """Test get_api_vehicle.""" vehicle = await account.get_api_vehicle(TEST_VIN) diff --git a/tests/test_renault_client.py b/tests/test_renault_client.py index 19654b95..3164eb4f 100644 --- a/tests/test_renault_client.py +++ b/tests/test_renault_client.py @@ -14,7 +14,7 @@ from renault_api.renault_client import RenaultClient -@pytest.fixture() +@pytest.fixture def client(websession: aiohttp.ClientSession) -> RenaultClient: """Fixture for testing RenaultClient.""" return RenaultClient( @@ -36,7 +36,7 @@ def test_init(websession: aiohttp.ClientSession) -> None: ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_person( client: RenaultClient, mocked_responses: aioresponses ) -> None: @@ -47,7 +47,7 @@ async def test_get_person( assert len(person.accounts) == 2 -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_api_accounts( client: RenaultClient, mocked_responses: aioresponses ) -> None: @@ -57,7 +57,7 @@ async def test_get_api_accounts( assert len(accounts) == 2 -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_api_account(client: RenaultClient) -> None: """Test get_api_account.""" account = await client.get_api_account(TEST_ACCOUNT_ID) diff --git a/tests/test_renault_session.py b/tests/test_renault_session.py index 1c0ab96e..57633996 100644 --- a/tests/test_renault_session.py +++ b/tests/test_renault_session.py @@ -35,7 +35,7 @@ def get_logged_in_session(websession: aiohttp.ClientSession) -> RenaultSession: ) -@pytest.fixture() +@pytest.fixture def session(websession: aiohttp.ClientSession) -> RenaultSession: """Fixture for testing RenaultSession.""" return RenaultSession( @@ -45,7 +45,7 @@ def session(websession: aiohttp.ClientSession) -> RenaultSession: ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_init_locale_only(websession: aiohttp.ClientSession) -> None: """Test initialisation with locale only.""" session = RenaultSession( @@ -59,7 +59,7 @@ async def test_init_locale_only(websession: aiohttp.ClientSession) -> None: assert await session._get_kamereon_root_url() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_init_country_only(websession: aiohttp.ClientSession) -> None: """Test initialisation with country only.""" session = RenaultSession( @@ -89,7 +89,7 @@ async def test_init_country_only(websession: aiohttp.ClientSession) -> None: assert await session._get_kamereon_root_url() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_init_locale_details_only(websession: aiohttp.ClientSession) -> None: """Test initialisation with locale_details only.""" session = RenaultSession( @@ -107,7 +107,7 @@ async def test_init_locale_details_only(websession: aiohttp.ClientSession) -> No assert await session._get_kamereon_root_url() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_init_locale_and_details(websession: aiohttp.ClientSession) -> None: """Test initialisation with locale and locale_details.""" session = RenaultSession( @@ -122,7 +122,7 @@ async def test_init_locale_and_details(websession: aiohttp.ClientSession) -> Non assert await session._get_kamereon_root_url() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_init_locale_country(websession: aiohttp.ClientSession) -> None: """Test initialisation with locale and country.""" session = RenaultSession( @@ -137,7 +137,7 @@ async def test_init_locale_country(websession: aiohttp.ClientSession) -> None: assert await session._get_kamereon_root_url() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_not_logged_in(session: RenaultSession) -> None: """Test errors when not logged in.""" with pytest.raises( @@ -159,7 +159,7 @@ async def test_not_logged_in(session: RenaultSession) -> None: await session._get_jwt() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_login(session: RenaultSession, mocked_responses: aioresponses) -> None: """Test login/person/jwt response.""" fixtures.inject_gigya_all(mocked_responses) @@ -180,7 +180,7 @@ async def test_login(session: RenaultSession, mocked_responses: aioresponses) -> assert len(mocked_responses.requests) == 3 -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_expired_login_token( websession: aiohttp.ClientSession, mocked_responses: aioresponses ) -> None: diff --git a/tests/test_renault_vehicle.py b/tests/test_renault_vehicle.py index f5887773..92ce8447 100644 --- a/tests/test_renault_vehicle.py +++ b/tests/test_renault_vehicle.py @@ -24,7 +24,7 @@ from renault_api.renault_vehicle import RenaultVehicle -@pytest.fixture() +@pytest.fixture def vehicle(websession: aiohttp.ClientSession) -> RenaultVehicle: """Fixture for testing RenaultVehicle.""" return RenaultVehicle( @@ -52,7 +52,7 @@ def test_init(websession: aiohttp.ClientSession) -> None: ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_details( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -64,7 +64,7 @@ async def test_get_details( assert await vehicle.get_details() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_car_adapter( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -76,7 +76,7 @@ async def test_get_car_adapter( assert await vehicle.get_car_adapter() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_contracts( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -89,7 +89,7 @@ async def test_get_contracts( assert await vehicle.get_contracts() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_has_contract_for_endpoint_1( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -101,7 +101,7 @@ async def test_has_contract_for_endpoint_1( assert await vehicle.has_contract_for_endpoint("charge-mode") -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_has_contract_for_endpoint_2( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -110,7 +110,7 @@ async def test_has_contract_for_endpoint_2( assert await vehicle.has_contract_for_endpoint("battery-status") -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_battery_status( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -119,7 +119,7 @@ async def test_get_battery_status( assert await vehicle.get_battery_status() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_location( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -128,7 +128,7 @@ async def test_get_location( assert await vehicle.get_location() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_hvac_status( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -137,7 +137,7 @@ async def test_get_hvac_status( assert await vehicle.get_hvac_status() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_hvac_settings( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -163,7 +163,7 @@ async def test_get_hvac_settings( assert schedules[i].__dict__[day] is None -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_charge_mode( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -172,7 +172,7 @@ async def test_get_charge_mode( assert await vehicle.get_charge_mode() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_cockpit( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -181,7 +181,7 @@ async def test_get_cockpit( assert await vehicle.get_cockpit() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_lock_status( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -190,7 +190,7 @@ async def test_get_lock_status( assert await vehicle.get_lock_status() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_charging_settings( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -199,7 +199,7 @@ async def test_get_charging_settings( assert await vehicle.get_charging_settings() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_notification_settings( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -208,7 +208,7 @@ async def test_get_notification_settings( assert await vehicle.get_notification_settings() -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_charge_history_month( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -221,7 +221,7 @@ async def test_get_charge_history_month( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_charge_history_day( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -234,7 +234,7 @@ async def test_get_charge_history_day( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_charges( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -246,7 +246,7 @@ async def test_get_charges( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_hvac_history( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -259,7 +259,7 @@ async def test_get_hvac_history( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_get_hvac_sessions( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -271,7 +271,7 @@ async def test_get_hvac_sessions( ) -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_ac_start( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -296,7 +296,7 @@ async def test_set_ac_start( assert expected_json == request.kwargs["json"] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_ac_stop( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -311,7 +311,7 @@ async def test_set_ac_stop( assert expected_json == request.kwargs["json"] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_charge_mode( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -327,7 +327,7 @@ async def test_set_charge_mode( assert expected_json == request.kwargs["json"] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_charge_schedules( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -345,7 +345,7 @@ async def test_set_charge_schedules( assert expected_json == request.kwargs["json"] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_charge_start( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: @@ -362,7 +362,7 @@ async def test_set_charge_start( assert expected_json == request.kwargs["json"] -@pytest.mark.asyncio() +@pytest.mark.asyncio async def test_set_hvac_schedules( vehicle: RenaultVehicle, mocked_responses: aioresponses ) -> None: