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