Skip to content

Session Start Event¤

SessionStart dataclass ¤

SessionStart(
    session_id: str,
    timestamp: str,
    python: PythonDistribution,
    pytest_version: str,
    plugin_version: str,
    event: str = "session_start",
    project: Project | None = None,
)

Event emitted when the test session is started.

Attributes:

Name Type Description
event str

The event type. Always set to session_start.

plugin_version str

The version of pytest-broadcaster plugin that is used to produce the report.

project Project | None

The project that is being tested.

pytest_version str

The version of pytest that is running the tests.

python PythonDistribution

The Python distribution that is running the tests.

session_id str

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

timestamp str

The date and time when the test session was started in ISO 8601 format.

event class-attribute instance-attribute ¤

event: str = 'session_start'

The event type. Always set to session_start.

plugin_version instance-attribute ¤

plugin_version: str

The version of pytest-broadcaster plugin that is used to produce the report.

project class-attribute instance-attribute ¤

project: Project | None = None

The project that is being tested.

pytest_version instance-attribute ¤

pytest_version: str

The version of pytest that is running the tests.

python instance-attribute ¤

The Python distribution that is running the tests.

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 date and time when the test session was started in ISO 8601 format.