def vehicle(websession: aiohttp.ClientSession) -> RenaultVehicle: """Fixture for testing RenaultVehicle.""" return RenaultVehicle( account_id=TEST_ACCOUNT_ID, vin=TEST_VIN, session=get_logged_in_session(websession), )
def test_init(websession: aiohttp.ClientSession) -> None: """Test RenaultClient initialisation.""" assert RenaultClient(session=get_logged_in_session(websession), ) assert RenaultClient( websession=websession, country=TEST_COUNTRY, locale_details=TEST_LOCALE_DETAILS, credential_store=get_logged_in_credential_store(), )
def test_init(websession: aiohttp.ClientSession) -> None: """Test RenaultVehicle initialisation.""" assert RenaultVehicle( account_id=TEST_ACCOUNT_ID, vin=TEST_VIN, session=get_logged_in_session(websession), ) assert RenaultVehicle( account_id=TEST_ACCOUNT_ID, vin=TEST_VIN, websession=websession, country=TEST_COUNTRY, locale_details=TEST_LOCALE_DETAILS, credential_store=get_logged_in_credential_store(), )
def account(websession: aiohttp.ClientSession) -> RenaultAccount: """Fixture for testing RenaultAccount.""" return RenaultAccount( account_id=TEST_ACCOUNT_ID, session=get_logged_in_session(websession), )
def client(websession: aiohttp.ClientSession) -> RenaultClient: """Fixture for testing RenaultClient.""" return RenaultClient(session=get_logged_in_session(websession), )