Skip to content

Session Finish¤

SessionFinish dataclass ¤

SessionFinish(
    session_id: str,
    timestamp: str,
    exit_status: int,
    event: str = "session_finish",
)

Event emitted when the session is finished.

event class-attribute instance-attribute ¤

event: str = 'session_finish'

The event type. Always set to 'session_finish'.

exit_status instance-attribute ¤

exit_status: int

The status which pytest will return to the system. 0 means success, 1 means test failure, anything else is an error.

session_id instance-attribute ¤

session_id: str

The unique if of this test session used to aggregate events together.

timestamp instance-attribute ¤

timestamp: str

The time when the session finished in ISO 8601 format.