testframework.clients.brain.tester.car moduleο
A sub object of the client for interaction with the Car connection
- class testframework.clients.brain.tester.car.CarConnection(client: TestClient)ο
Bases:
object
Car connection to be used in Test Cases.
Provides methods for interacting with the WallboxCar connection. Itβs possible to simulate an EV connected to the Wallbox.
- Usage:
Given a TestClient with
TestClient(testbench, 30)
you can use the Car connection with testclient.car.connect()- The car connection provides this functionality
connect()
isconnected()
disconnect()
- connect() None ο
Simulates connecting the car to the wallbox
- disconnect() None ο
Simulates disconnecting the car from the wallbox
- is_connected() bool ο
Returns true if the car connection is in the connected state